Somewhat off topic, sorry, in that it doesn't address the OP's question, but I've found this a much better way of debugging than either MQL4's Print() or Comment() statements.ġ. If(((mStoredTimeBearish + mCheckingTime) > iTime(NULL, 1, 0)) & mPriceAction = 3) My point is why on that code section that I have posted up "if" can be skipped Can you help me with that part? Yep you are right Gurmai that if is not important there. ObjectSet("mDivLine0"+Time, OBJPROP_BACK, true) Īlert(Symbol() + Period() + "M" + " Candle Number with Highest Volume V=" + mVolumeMaxLastBar + " Volume candle v=" + M5HighestVolumeShift + "HighestPriceCandle ="+ M5LowestPriceShift + " LowestPrice ="+ mPriceMinLastBar + " LowestPriceCandleAFTER =" + mM1LowestPriceCandle) ObjectSet("mDivLine0"+Time, OBJPROP_TIME1, iTime(NULL, 1, M5HighestVolumeShift)) ObjectSet("mDivLine0"+Time, OBJPROP_WIDTH, 1) ObjectSet("mDivLine0"+Time, OBJPROP_STYLE, STYLE_SOLID) ObjectSet("mDivLine0"+Time, OBJPROP_COLOR, Lime) ObjectCreate("mDivLine0"+Time, OBJ_VLINE, 0, 0, 0, 0, 0) if(M5LowestPriceShift = M5HighestVolumeShift) If((M5LowestPriceShift = M5HighestVolumeShift) & (mVolumeMaxLastBar > (iVolume(NULL, 1, iHighest(NULL, 1, MODE_VOLUME, (M5HighestVolumeShift - 1), 1))))) Int mM1LowestPriceCandle = iLowest(NULL, 1, MODE_LOW, (M5LowestPriceShift - 1), 1) Int mVolumeMaxLastBar = (iVolume(NULL, 1, M5HighestVolumeShift)) ĭouble mPriceMinLastBar = (iLow(NULL, 1, M5LowestPriceShift)) Int M5HighestVolumeShift = iHighest(NULL,1,MODE_VOLUME,shiftM5first-shiftM5last,shiftM5last) Int M5LowestPriceShift = iLowest(NULL,1,MODE_LOW,shiftM5first-shiftM5last,shiftM5last + 1) Int shiftM5last = iBarShift(NULL,1,closecandle,false) Int shiftM5first = iBarShift(NULL,1,opencandle,false) If(iTime(NULL, 0, 0) > mStoredTimeBearish)//What is the point? Must be trueĭatetime closecandle = opencandle + (Period()*60)-1 Inserted Code if(((mStoredTimeBearish + mCheckingTime) (0.95*(iVolume(NULL, 0, iHighest(NULL, 0, MODE_VOLUME, mNoBackCheck, 3))))) & (iClose(NULL, 0, 2) iOpen(NULL, 0, 1)))
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |