After a sell/buy signal, check the trend in 3 different timeframes
-
Hello!
I am a new user.I have an indicator, where i receive a sell/buy signal.
First, How can i insert this in the tool?
Option init, timer, tick…?
Can i read the signal and Go to next step: check the Trend?
When i receive the signal, the ea should check the correct trend in 3 different timeframes.
How can i solve this?
I hope you can help me.
Thank you!
Regards
Carsten -
@flyfisher The indicator you add in the my indicator tab on the top of the builder page, MQL files are easier than EX files, either can be used but will likely need buffers that contain the relevent information. As for the trend you will need to decide what is being used for trend, like a moving average for example, this can quite skimpily be checked with a condition block.
-
Hallo!
Thank you.
Yes, i want to use in the timeframes 3 moving averages..for example H2/M30/M5 and the moving averages 89/55/34.Additional a cross between the ma 34/55.
Description of my idea:
Read the signal sell
Go to H2 short trend with Minimum 2 active candles Short
Go to M30 short trend with Minimum 3 active candles short
Go to M5 short trend with Minimum 1 active candle
All short trends have to be under the moving averages and may not cross the moving average 80.
(…and additional options to check)
..to begin is difficult…Thank you!
Regards
Carsten -
@flyfisher That is not a trivial strategy to implement. You will need several variables controlling those active candles counters. Are you familiar with using variables?
-
Thank you for your answer.
I am new in this, but i will learn it.
Yes, i have the knowledge, what variables doing. -
@flyfisher This will show you how to count the candles above & below a MA, you'll need this set for all your conditions though.
-
Thank you.
I will try it.
Hope i understand it.
Thank you. -
@jstap
Hi!
I tried to insert it...but i think, i have problems to understand...
https://fxdreema.com/shared/PGrPpoWQc
I created with the first step as example the crossing MA sell and buy.
After this is the next step, that will check higher timeframes for example H2/H1/M30.
In the example only H2.
Can someone please check this and explain to me what I did wrong...I want to learn.
Thank you! -
Hi!
Another question…you used variables…I don’t see the variables and the description in your shared file.
Could you please tell me?
Thank you. -
@flyfisher You need to connect blocks 21 and 22 via yellow output dot, not the orange one like now. Same with blocks 17 and 18. What jstap shared was the general idea of loops. Your project is connecting the loop without executing it properly.
In roder to find jstap's variables you need to download the mq4 file from his shared link and then import it into your fxDrema account.
-
Thank you for your perfect answer!!!