how can I define sl to 15 pips and tp to 20 pips in this code?
watson mulenga:
int TpPoints = 100; void OpenBuyOrder() { // Get ask price double Ask = SymbolInfoDouble(_Symbol,SYMBOL_ASK); double tp = Ask + TpPoints * _Point; Ask = NormalizeDouble(Ask,_Digits); tp = NormalizeDouble(tp,Digits()); // Buy at specified lots trade.Buy(Lots,_Symbol,Ask,tp); }

You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- 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