Trabalho concluído
Termos de Referência
This is a Trend catching EA based on the Trend laser indicator.
When entering a buy trade the following conditions need to be met:
Success rate of Trendlaser needs to be above 80% (need to be adjustable)
When Trendlaser signal says buy on a selected timeframe it needs to check a higher selected timeframe if it also says buy, only then this step is valid
(optional) check if stochastics is oversold, only proceed if stochastics crosses the 20 line from below (need to be adjustable)
Place 3 buy orders at the open of a new candle.
SL of the 3 trades need to be set by a fixed amount of pips or if Trendlaser on the selected time frame gives a sell signal.
TP of trade 1 needs to be the minimum move of the Trendlaser, TP of trade 2 needs to be the average move of the Trendlaser, TP of trade 3 needs to be 2 (need to be adjustable) times the average move of Trendlaser with a trailing stop. All orders also need to have the option to use a TP for a fixed amount of pips.
If TP 1 is hit Trade 1 is closed and Trade 2 and 3 need to move their SL to break-even (the initial buy order).
If TP 2 is hit Trade 2 need to be closed and the TP of Trade 3 need to be moved to the TP of Trade 1.
Right now only Trade 3 is active with the TP of the average move of Trendlaser x2 with a trailing stop
When entering a sell trade the following conditions need to be met:
Success rate of Trendlaser needs to be above 80% (need to be adjustable)
When Trendlaser signal says buy on a selected timeframe it needs to check a higher selected timeframe if it also says sell only then this step is valid
(optional) check if stochastics is overbought, only proceed if stochastics crosses the 80 line from above (need to be adjustable)
Place 3 sell orders at the open of a new candle.
SL of the 3 trades need to be set by a fixed amount of pips or if Trendlaser on the selected time frame gives a sell signal.
TP of trade 1 needs to be the minimum move of the Trendlaser, TP of trade 2 needs to be the average move of the Trendlaser, TP of trade 3 needs to be 2 (need to be adjustable) times the average move of Trendlaser with a trailing stop. All orders also need to have the option to use a TP for a fixed amount of pips.
If TP 1 is hit Trade 1 is closed and Trade 2 and 3 need to move their SL to break-even (the initial buy order).
If TP 2 is hit Trade 2 need to be closed and the TP of Trade 3 need to be moved to the TP of Trade 1.
Right now only Trade 3 is active with the TP of the average move of Trendlaser x2 with a trailing stop
Further the EA need to have the following adjustable settings:
Money management (Fixed lot, lot size based on balance, max orders active)
Time (Trade from day and time till day and time)
Comment field
All variables such as success rate of Trendlaser before entering trade, Stochastics level, (x) times of average move of Trendlaser need to be adjustable.
For more info regarding the Trendlaser, please check the video about it:
https://youtu.be/hRiOHH3grOY
The code need to be clean and need to have comments