Place Multiple Market Orders
14 replies
daveM
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
tomas262
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
daveM
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!
tomas262
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
degrath
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.
tomas262
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?
degrath
6 years ago #142777
Hello,
it can be done easier way I believe. Can you describe the rules in more detail?
degrath
6 years ago #142778
Hello,
it can be done easier way I believe. Can you describe the rules in more detail?
degrath
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.
tomas262
6 years ago #142849
degrath
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.
tomas262
6 years ago #142921
Ok, I will make an example for this and post
degrath
6 years ago #142922
Thanks Tomas, that would be much appreciated.
tomas262
6 years ago #143188
Hello,
degrath
6 years ago #143240
Viewing 14 replies - 1 through 14 (of 14 total)