Hello. If possible, please provide a variant with BUYSTOP and SELLSTOP
alex123456:
Hello. If possible, please present a variant with BUYSTOP and SELLSTOP.
I think it's quite simple, but if it's Barabashka's solution in principle, he can chick me).
for(int i=0;i<5;i++) { m_trade.BuyStop(InpLot,m_symbol.Bid()+(double)(i+1)*ExtStep); m_trade.SellStop(InpLot,m_symbol.Ask()-(double)(i+1)*ExtStep); }
It's in the void OnTick() procedure.
Instead of 5(for(inti=0;i<5;i++)), you can substitute another number of open detectors, or substitute a variable from input.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register

Carbophos:
Author: Vladimir Karputov