仕事が完了した
指定
I need a simple EA, an automated traded robot, based on ZIGZAG indicator.
The EA will open pending STOP orders on the latest ZIGZAG highs and lows, like you can see in the picture.
There will be the following inputs
Session time - True False
Session Start/End - 00:00 to 00:00
Here, the EA is allowed to open market orders only in selected time session. The buy Stop orders will not be affected by this.
Number of trade for session -
This input will allow only a certain amount of trades to be opened in a session. If input 2 is set, then only two trades will be opened during that session. There must be a rule to not allow simultaneous trades. Two trades should not be allowed simultaneously. SL must always be hit before opening another trade in the same session. Exception will be made if new trade is open in a new session.
SL and TP type : ATR/ PIP
IF PIP selected, than the inputs will be on pip
IF ATR selected, than the inputs will be ATR size. IMPORTANT- if ATR Selected, then EA will open pending orders only if price is getting close to a certain predetermined by input distance, from the stop order.
Distance for entry with ATR SL/TP -
This input will always be in pip. If input 100 selected, it means that the stop orders will be added only if the price is at 100 pips from the last high or low ZIGZAG level. Thie rule is created to have ATR ac close to the market price as possible. THere is not reason to open pending orders by ATR at New York session, and open the trade on Asian session
SL size ATR-
If ATR is selected as SL and TP type, than if input 1, means SL will be same size like ATR in the moment of placing the stop limit trade
TP zise ATR -
If ATR is selected as SL and TP type, than if input 3, means TP will be 3 times the size of ATR in the moment of placing the stop limit order.
SL by pip -
TP by pip -
Values will be acording with pip size. If 100 entered, than distance will be 100 pip.
Volume -
The volume will always calculated in money value. If input 50 is entered, than the EA will automatically adjust the volume by lot, with SL distance, to get a 50USD stop loss.
Volume multiplier -
The EA will increase volume with every losing trades. If input 1 is selected, than nothing will happen. IF input 1.50 is selected, than, after a loosing trade, the new volume will be multiply with 1.50, so instead of 50usd for loosing trade, it will be 75 now. This increase will stop if TP hit, and the cicle will start over.
If any questions, please ask.