Reply

Open New Order at every Bar Open

5 replies

daveM

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

Visit profile

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

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

7 years ago #139221

Hello,

 

sure, I will attach the example for you

0

daveM

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

Visit profile

7 years ago #139222

I do not see the attachment..

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

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.

0

daveM

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

Visit profile

7 years ago #139243

Thanks very much for this

 

I tried many things, no luck. lol

0

daveM

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

Visit profile

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

0

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