Lavoro terminato
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specifiche
Hi,
i need an indicator for the indicator "Cumulative Delta MT4" which is
free available in the market. This indicator has different settings,
only the "DemandandSupply" mode is of interest. I will use thge EA to
backtest the indicator.
The EA should have a panel like this (style); up/down buttons are not needed, sample code could be provided:
Input in panel and indicator settings are:
Risk in account currency
Stop Loss in pips / points, EA should calculate the Lot Size
Lot Size as output as shown above
actual win / loss as shown above
(Take Profit is not needed)
Start is starting the EA and Stop is deleting all orders and stop EA
Pls check indicator. It draws two lines and the entry for short or long will be when the lines are crossing each other. This may occure during a candle isnt finished and after it is not crossing anymore. So the candle of the choosen timeframe must be finished before a market order should be placed. If the green line crosses red line = long, if red crosses green = short.
Two modes for the EA (input in settings)
Mode "Close": It closes the actual position when an opposite signal came in. Example: Long position; red line crosses green line after candle finished, close long position, wait till next candle finish, if still red line above green line open short market
Mode "Reverse": It reverse position directly from long to short or
vice versa. Taken example from above, instead of waiting for next
candle, long position closed and short position opened.
Stop conditions
Input Stop in pips / points(like in the panel)
Stop Mode "Static": Stop Level doesnt change
Stop Mode "Trail": Stop level trails when trade is positive
Stop Mode "Break Even": Stop Level is at break even level after the trade is xxx pips/ points in profit and trails after
Trail: Input in pips / points for traling distance
Break Even: Input in pips / points when the stop level should be at break even.
Trading times
To backtest the EA correctly trading times must be defined so only volatil time frames are of interest
Trade Start: hh:mm when trades may start
Trade Stop: hh:mm when no new trades should be placed, exisiting positions should be open till SL