Lavoro terminato
Specifiche
Hello all.
The indicator should be able to start trading at specific hours of the day with several options to manage the trade like follows
Start trading : 22:00 ( the hour when EA will have its first trade on next candle after 00:00 regardless the time frame)
Opening mode: Auto/Manual
If auto selected than the EA should measure the length of the movement between these hours and take a decision to open trade in the opposite way based on next inputs:
Starting price: 09:00
Ending price: 22:00
( if the price at price end time is higher than price start the EA should open SHORT at the selected start time, and vice versa)
IF the opening mode is set on Manual, than i need the flowing input so that the indicator can take a decision
Trading direction: Sell/Buy ( in this situation the EA doesn't care about session start and session ending times, and it will automatically open trade at Start trading based on the inputs from Trading Direction
Money Management
Allow MG: True/False ( if Martin Gale active or not)
MG type: Grid/Normal (IF Grid selected than IT will open infinite trades until TP hit, without SL. If Normal selected, it will have SL hit, and open immediately, simultaneously with SL another trade in the initial direction)
MG multiplier: 0.00 ( the value for multiplying each next opened trade when MG active, both for Grid and Normal set)
Max trades: 0.00 ( the number of trades WHEN the MG should STOP opening new position and take the loss)
SL type: Pip/ATR ( if Pip selected then the value for SL will be taken from input SL size pip. IF ATR selected, than ONLY THE VALUE OF THE FIRST SL TRADE will be according to ATR, the next ones SL values will be acording to initial trade...because i do not want to gett different values when ATR is changing.)
SL size pip: 0.00 ( this value in pips will work only when MG type: Normal. )
SL size ATR: 0.00 ( this is ATR value and if i add value 1, it means that SL is same size like ATR or 1xART, if i add value 2, it means that SL is 2xATR ....etc....This should also work only when MG type: Normal )
TP type : Pip/ATR
TP size pip: 0.00 ( manual input for TP size)
TP size ATR: 0.00 ( if value 1, that TP is 1xATR...etc)
NOTE:
The cycle in Grid/Normal mode will end only when TP or NR limit trades reached