Therefore this example was from combo 5/1M where 5M is timeframe on charts and only when I want check results I am switching to 1M to see what happened on lower TF.
Why you are asking this? Something is wrong?
MT4 - how to "reset" the indicator subwindows? 0 replies
Help editing variables in mql4 27 replies
Why does my indicator reset when changing timeframes? 3 replies
Help needed assigning MA variables and crosses 2 replies
Passing variables from Indicator to EA 8 replies
Disliked{quote} Thanks hanover. Do you have also some link where is some tutorial how to use this DebugView correctly ? ThxIgnored
Disliked{quote} Yes I am sure because I am also running 15/5M combo but didn't received alert on this time combo yep. Therefore this example was from combo 5/1M where 5M is timeframe on charts and only when I want check results I am switching to 1M to see what happened on lower TF. Why you are asking this? Something is wrong?Ignored
ObjectCreate("mDivLine5"+Time[1], OBJ_VLINE, 0, 0, 0, 0, 0); ObjectSet("mDivLine5"+Time[1], OBJPROP_COLOR, Lime); ObjectSet("mDivLine5"+Time[1], OBJPROP_STYLE, STYLE_DOT); ObjectSet("mDivLine5"+Time[1], OBJPROP_WIDTH, 1); ObjectSet("mDivLine5"+Time[1], OBJPROP_TIME1, iTime(NULL, 1, 1)); ObjectSet("mDivLine5"+Time[1], OBJPROP_BACK, true);
DrawLine1(White, Time[1]);
Disliked{quote} The dotted line is created by this piece of code ObjectCreate("mDivLine5"+Time[1], OBJ_VLINE, 0, 0, 0, 0, 0); ObjectSet("mDivLine5"+Time[1], OBJPROP_COLOR, Lime); ObjectSet("mDivLine5"+Time[1], OBJPROP_STYLE, STYLE_DOT); ObjectSet("mDivLine5"+Time[1], OBJPROP_WIDTH, 1); ObjectSet("mDivLine5"+Time[1], OBJPROP_TIME1, iTime(NULL, 1, 1)); ObjectSet("mDivLine5"+Time[1], OBJPROP_BACK, true); The white line is created by this code, after the dotted line is created and before mStoredTimeBearish is set to 0 DrawLine1(White, Time[1]);...Ignored
Disliked{quote} Gumrai this is really great and important point!! Ok do you think that it will help if I change DrawLine1(White, Time[1]); to correct time that is for 1M chart? Can I use something like this? DrawLine1(White, iTime(NULL,1,1)); But on that last statement looks to me that you are not 100% sure if this is really that problem because of that 11minutes delay??Ignored
DrawLine1(White, iTime(NULL,1,1));
QuoteDislikedI may or may not have an explanation
Disliked{quote} DrawLine1(White, iTime(NULL,1,1)); If you change the time for drawing the white line as above, then it will be drawn at the same place as your dotted line and I am sure that you don't want that. No, I am not 100% sure, as I said a few posts back {quote} with that 11 minute difference, I think that my suggestion of what is happening only makes sense if the indi was attached to chart with TF higher than M5.Ignored
Disliked{quote} Ok Gumrai. Markets are open I will run more timeframes combo for more examples and see it there will be again some bad. Because whole problem is that sometimes it is working correct and after that white line I am not receiving that dotted lime line but sometimes like on that example that I have posted it plot that dotted lime line. Will leave that indi running on 5/1M and 15/5M combo this night and let you know. Thx for help Gumtai DanielIgnored
Disliked{quote} Good luck, hope that it goes well If I can just draw your attention to another point that may affect the functioning of your code. You don't check for errors anywhere in your code. Error 4066 is very common when retrieving data from a timeframe different to the chart, especially when accessing a lower TF. Eg. Maybe your indi has no reason to check the M1 values for 2 hours, when it does try to retrieve the values, those values will need to be updated and so the iTime or iBarShift functions may return incorrect values. You can get over...Ignored
Disliked{quote} Gumrai you are telling me that if I will run that indi on 1M chart instead of 5M this can maybe help? I understand it correctly? Because if this can help there is no problem for me to switch TF to that lower TF... But then that 4066 error is not working also opposite? Checking upper TF from lower TF is ok? THXIgnored
Disliked{quote} No, I am saying that if you also have an M1 chart open M1 history will auto update every tick, so there should not be any problems when you call iTime etc.Ignored
Alert(Symbol() + Period() + "M" + " Candle Number with Highest Volume V=" + mVolumeMaxLastBar + " Volume candle v=" + M5HighestVolumeShift + "HighestPriceCandle ="+ M5LowestPriceShift + " LowestPrice ="+ mPriceMinLastBar + " LowestPriceCandleAFTER =" + mM1LowestPriceCandle); PlaySound("Alert.wav");