Tâche terminée
Spécifications
Hi, I would like an EA coded on the indicator from the market place: https://www.mql5.com/en/market/product/20818
The code for the variables is below. There are 3 profit targets and one stop loss. At each profit target I would like:
Quick profit: Take 1/3 of profit and set stop loss to breakeven
First target: Take 1/3 of profit and set stop loss to quick profit
Second target: Take 1/3 of profit and set stop loss to first target
If it is possible to incorporate the 'signal sensitivity' variable from the indicator to optimise the value it would be great.
The code should work exactly as described above and have the option to use either fixed lot size or risk % based on balance and stop loss level.
double Buy_Signal = iCustom(NULL,0,"Market/ACB Breakout Arrows",0,1);
double Sell_Signal = iCustom(NULL,0,"Market/ACB Breakout Arrows",1,1);
Buy_Stoploss:
if(iCustom(NULL,0,"Market/ACB Breakout Arrows",2,1)!=0)Buy_Stoploss = iCustom(NULL,0,"Market/ACB Breakout Arrows",2,1);
Sell_Stoploss:
if(iCustom(NULL,0,"Market/ACB Breakout Arrows",3,1)!=0)Sell_Stoploss = iCustom(NULL,0,"Market/ACB Breakout Arrows",3,1);
// Fetching targets from the chart
Quick Profit = NormalizeDouble(ObjectGetDouble(0,"FirstTarget",OBJPROP_PRICE),Digits);
First Target = NormalizeDouble(ObjectGetDouble(0,"Target1",OBJPROP_PRICE),Digits);
Final Target = NormalizeDouble(ObjectGetDouble(0,"Target2",OBJPROP_PRICE),Digits);
FULL INPUT SETTINGS FOR THE INDICATOR:
Input Parameters
- History Bars: Number of bars to consider for Indicator's calculation.
- Signal Sensitivity: Choose the Arrow's Sensitivity (signal strength).
- Bars for SL: Numbers of bars to consider for Stop loss calculation.
- Display Information: Show/Hide the signal information on top left corner of the chart.
- Lot Size Information: Show/Hide the lot size calculation for the last signal.
- Risk per trade: Risk percentage on each trade.
- Show Target Lines: Show/hide the SL, TP and Quick profit levels on the chart.
- Show Max Profit: Show/Hide Max. Profit line: The Maximum Favorable Excursion in Pips for the latest signal.
- Alert Settings: Display box, Email, Push notifications and Sound alerts are available.