Get signal from another time frame <<SOLVED>>
-
Hi all, I don't remember ever having this problem in the past, maybe I missed some steps. I would like to put the backtest on M1 chart and get the signal from the M15 chart for example. But i can't.
https://fxdreema.com/shared/vmTUnJaac

-
u changed the input value to 15 but the start value is current. u need to adjust at at initial source
-
look at the block and how i put the settings vs wat u did
-
@youngtreptrader thanks, I already did what you did now, it doesn't work. Have you tried your project in backtest? Anyway that's a drop-down menu (enum timeframes) that has to work, it does not make sense change the time frame in the fxdreema builder.
-
u are right something isnt being noticed but i remember i was able to draw an object on a daily tf when Ea was running on 15m and it worked. so i tried to do that here and then put the buy order after that object draws. check it out it works perfectly in sync with the 15m time frame from running on the 1min. https://fxdreema.com/shared/iDl8IwvGc
-
@youngtreptrader Ok thanks, now it's clearly a bug
-
@ambrogio You can substitute your Timeframe constant type for an integer and then select the number of minutes of the required timeframe. In you case you should select 15.
-
@l-andorrà @Youngtreptrader have you tried my project that I linked at the beginning of the thread? It seems that I have problems with my platform, in fact I have tried on another MT4 and it works perfectly, thanks anyway
-
yes ur first projest didnt work. and yes it is a bug because i have made a project doing wat u did and it worked. but did you try my modification? it work how u need on my mt4. sometimes ther version of ur mt4 download will have a bug too. delete and re download mt4
-
nothing is wrong with the logic, you put what you needed to do to produce a signal on the selected TF.
but when you are choosing what TF to "test" the software, this is the point of view you are viewing it from. It will search for signals still on the selected TF's that you set in the EA.
SO in short, just changed the TF to 1m on the settings tab of Metatrader, and keep it as 15M input on your EA.
ensure your Constants sections reads like this:
Type ENUM_TIMEFRAMES
Name Timeframe1
Value PERIOD_CURRENTThe capitalization is required. This will produce a drop down style of selecting time frames from the MT screen as it looks like you did. I just refuse to save and use anything MT4 to my computer so I can't see what you have on the constants side.
-

-
@Youngtreptrader @l-andorrà @TipsyWisdom Thank you all. As I said above, my project that I posted at the beginning of the topic works perfectly as it is, with the drop-down menu. It was an MT4 platform problem. Thanks again
-
you just forgot to change the time frame point of view huh? hahaha just messing.
-
@tipsywisdom absolutely not, did you read every comment correctly?