Reply

How to limit orders?

2 replies

josecort_trader

Subscriber, bbp_participant, community, 9 replies.

Visit profile

6 years ago #117875

Hello

 

I am developing a simple MA crossing strategy. I would like the EA opens a position each time there is a MA crossing. I have read the forum and I found how to solve the magic number problem when you want to open multiple orders. Now my EA is able to open trades for each MA crossing but it opens multiple orders for the same signal.

 

 

Please, could you help me?   I need the EA opens one order for each signal that appears.

 

THANKS

 

:rolleyes:

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #145063

Hello,

 

to eliminate multiple trades open you need to use the “Market Position is Not Long / Short” conditions which ensure that a following action (trade open) is performed only once. You can attach your WIzard project and I can modify it for you

0

josecort_trader

Subscriber, bbp_participant, community, 9 replies.

Visit profile

6 years ago #145068

Hello Marc

 

I appreciate your help.

 

I am learning a lot from the examples you have posted in your answers helping other members. I have added your suggestion ina second rules but it seems it is not working as I expected. Most probably I have written wrong the rule.

 

Here you have the EAs.

 

https://1drv.ms/u/s!AmTIb6O8HVMzuERXoJcN_hZjoZp0

 

https://1drv.ms/u/s!AmTIb6O8HVMzuENNrUIXd_nj1xi3

 

 

By now, I want to open short trades when a MA crossing takes place.

 

THANKS

0

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