Instruction to set a target order in price format, depending of the point/pip size.
e.g. EURUSD, set a target for 30 pips (point size is 0.0001):
SET TARGET PROFIT 0.0030
Syntax:
1 |
SET TARGET PROFIT x |
Example :
1 2 3 4 5 6 7 8 9 10 |
myMACD = MACD[12,26,9](close) long = myMACD crosses over 0 IF NOT LongOnMarket AND long THEN BUY 1 CONTRACTS AT MARKET ENDIF //set target of positions at 20 points SET TARGET PROFIT 20 |
I am slightly confused, is the x value the points to aim for, or the price at which you would like to take profit
Thank you
Value is in price format. For example, EURUSD, 20 pips should be:
SET TARGET PROFIT 0.0020
or even
SET TARGET PROFIT 20*pointsize
Hi Nicolas,
If I want to define a target profit that follows the MM20: How can I do it?
To be more specific: if I want to update a target profit at each launch corresponding to the current MMA20 value, how can I do it?
Thank you,
Regards