Reply

Place Multiple Market Orders

14 replies

daveM

Subscriber, bbp_participant, community, customer, sq-ultimate, 110 replies.

Visit profile

7 years ago #116195

Assuming that  a signal has been reached, place, say, 5 identical market orders.

 

Do I have to write a loop or just list 5 separate market orders ?

 

and..

 

How to get the Take Profit Price to be the same on each order.

 

Thanks

 

daveM

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #141056

Hello,

 

do you open them all at the same time?

 

You can specify TP as price which you can store using a variable. Look at the screenshot

0

daveM

Subscriber, bbp_participant, community, customer, sq-ultimate, 110 replies.

Visit profile

7 years ago #141063

To resolve my difficulty, I put a couple orders using a variable to occur at the same time and that seems to be working.

 

One significant problem is that I will have to have separate copies of the original ea for each currency pair because of the method used for magic numbers, Hopefully that will be resolved in the next version of EA Wizard.

 

The reason I say that is, when I tried to assign ‘Magic = Magic + 1’. that was ignored for each order (I placed the assignment after each order), I assumed that the order would get sent and the magic number would increase by 1 before the next order was  set up.

 

When I insert the assignments I get an error message as follows

 

‘Strategy is not valid!

Order Magic Numbers misconfiguration:
Every entry order must have its own unique MagicNumber!
Magic Number 1000 is in more than one order.’
 
Meaning I have to input a unique set of Magic Numbers for each currency pair if I am running more than one in an account and that necessitates a separate copy of the ea for each pair…..  unless I am doing it wrong.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #141083

Hello,

 

I think I know where the problem is but could you attach your project or send to [email protected]?

 

If you use the same variable for magic numbers for long and short, then EA Wizard recognizes it as a conflict. You need to use different variables for long / short

0

degrath

Subscriber, bbp_participant, community, 17 replies.

Visit profile

6 years ago #142757

Hi Guys

 

I want to open 7 too 20 trades per level, how would I go about this thanks.

Will I have to put trade conditions(If/Then) in 7 too 20 times? or is there a shortcut I can use(like above) thanks. 

 

Kind Regards Denis.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #142771

Hi Guys

 

I want to open 7 too 20 trades per level, how would I go about this thanks.

Will I have to put trade conditions(If/Then) in 7 too 20 times? or is there a shortcut I can use(like above) thanks. 

 

Kind Regards Denis.

 

Hello,

 

it can be done easier way I believe. Can you describe the rules in more detail?

0

degrath

Subscriber, bbp_participant, community, 17 replies.

Visit profile

6 years ago #142777

Hello,

it can be done easier way I believe. Can you describe the rules in more detail?

0

degrath

Subscriber, bbp_participant, community, 17 replies.

Visit profile

6 years ago #142778

Hello,

it can be done easier way I believe. Can you describe the rules in more detail?

0

degrath

Subscriber, bbp_participant, community, 17 replies.

Visit profile

6 years ago #142779

Hi Tomas, thanks for the reply.
Yes it opens 7 too 20 trades at set levels,say I have a start point it will open say 10 trades at each level above and below the start point.
Parameters:
Number of levels.
Number of trades per level.
Pips between levels.
TP and SL,

Thanks.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #142849

Hello,

 

when is a trade executed at each level. Just using cross above that price?

0

degrath

Subscriber, bbp_participant, community, 17 replies.

Visit profile

6 years ago #142851

Hi Tomas

 

Yes thats it exactly, start at a fixed price(say 1.2500) and then at set levels above(1.2550,1.2600,1.2650 . . . etc) and below(1.2450,1.2400,1.2350 . . . etc), if its 50 pip between levels for example.

 

Thanks.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #142921

Ok, I will make an example for this and post

0

degrath

Subscriber, bbp_participant, community, 17 replies.

Visit profile

6 years ago #142922

Thanks Tomas, that would be much appreciated.

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #143188

Hello,

 

this EA defines initial trading level, upper and lower price “boundary” levels for grid trading. When price reaches 1/2 distance to 
next level, all levels prices are re-calculated. At each level EA trades only defined # of trades on level cross event.
Test using “Every tick” precision. Level distance should be always bigger value than TP or SL 

0

degrath

Subscriber, bbp_participant, community, 17 replies.

Visit profile

6 years ago #143240

Hi Tomas thanks very much for this example, I will download and play with it.

 

Kind Regards Denis.

0

Viewing 14 replies - 1 through 14 (of 14 total)