Open New Order at every Bar Open
5 replies
daveM
7 years ago #115527
I would like to open an order at the open of every bar as long as conditions are met.
Can someone show me how to accomplish this.
Thank you
daveM
tomas262
7 years ago #139221
daveM
7 years ago #139222
I do not see the attachment..
tomas262
7 years ago #139237
Hello,
here is the sample. Strategy trades on every new bar when MA (14) crossed above MA (50). When MA 14 crosses below 50 it stops trading.
daveM
7 years ago #139243
daveM
7 years ago #139249
So my next problem was the magic number, I made a variable in EA Wizard but I could not figure out how to change it as the orders were placed. so I coded it in the EA. That seemed to work ok
I set the Magic Number to a variable ‘MNum’ and then increased it each trade with MNum = MNum +1
I wonder how I could do that in EA Writer, I have seen formulas for the protection variables.
In the meantime I am using ADX as a filter and it looks like I will get about 65 percent winners…, which for this project may be quite ok..
This thing is getting to be a bit complex, makes me appreciate the EA Wizard greatly, there is a lot of lines to the MT4 version……. confusing if I had to create that on my own lol
Viewing 5 replies - 1 through 5 (of 5 total)