stop loss negative

To add comments, please log in or register
Marco
10
Marco  

Do you would know someone to say me if a stop loss negative it is equivalent to a positive profit?

example

....


extern int SL_Down_SELL=-3; //negative value
extern int TP_Down_SELL=40;

.....

OrderModify(OrderTicket(),OrderOpenPrice(),(SL_Down_SELL*Point),(TP_Down_SELL*Point),0,Red);

......


Thanx in advance

cloudbreaker
1577
cloudbreaker  
Gonario:

Do you would know someone to say me if a stop loss negative it is equivalent to a positive profit?

example

....


extern int SL_Down_SELL=-3; //negative value
extern int TP_Down_SELL=40;

.....

OrderModify(OrderTicket(),OrderOpenPrice(),(SL_Down_SELL*Point),(TP_Down_SELL*Point),0,Red);

......


Thanx in advance





You've made a fundamental mistake - you are trying to enter a relative number of pips as the stoploss and takeprofit parameters in the trading function call.

The parameters must contain the calculated PRICE at which you wish to close the order.


CB

To add comments, please log in or register