Hi guys.
I am working whole day on this but can't find why I am getting nonstop alert and also both alert at ones
I really can't find what the f... is going on because there are two main different if's conditions but code is triggering both together....
Any help will be great guys!!
THX
I am working whole day on this but can't find why I am getting nonstop alert and also both alert at ones
I really can't find what the f... is going on because there are two main different if's conditions but code is triggering both together....
Any help will be great guys!!
THX
Inserted Code
extern string symbol1 = "EURUSDm"; extern string symbol2 = "EURAUDm"; extern string symbol3 = "EURJPYm"; extern string symbol4 = "EURGBPm"; extern string symbol5 = "GBPUSDm"; int LastAlert = 3; //+------------------------------------------------------------------+ int start() { if((iVolume(symbol1, mTF, 1) < (iVolume(symbol1, mTF, iLowest(symbol1, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol1, mTF, 1) > iOpen(symbol1, mTF, 1))) {mPair1Bear = 1; symbol11Bear = symbol1;} { if((iVolume(symbol2, mTF, 1) < (iVolume(symbol2, mTF, iLowest(symbol2, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol2, mTF, 1) > iOpen(symbol2, mTF, 1))) {mPair2Bear = 1; symbol22Bear = symbol2;} if((iVolume(symbol3, mTF, 1) < (iVolume(symbol3, mTF, iLowest(symbol3, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol3, mTF, 1) > iOpen(symbol3, mTF, 1))) {mPair3Bear = 1; symbol33Bear = symbol3;} if((iVolume(symbol4, mTF, 1) < (iVolume(symbol4, mTF, iLowest(symbol4, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol4, mTF, 1) > iOpen(symbol4, mTF, 1))) {mPair4Bear = 1; symbol44Bear = symbol4;} if((iVolume(symbol5, mTF, 1) < (iVolume(symbol5, mTF, iLowest(symbol5, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol5, mTF, 1) > iOpen(symbol5, mTF, 1))) {mPair5Bear = 1; symbol55Bear = symbol5;} { if((mPair1Bear + mPair2Bear + mPair3Bear + mPair4Bear + mPair5Bear) >=2) { if(LastAlert != 1) { LastAlert = 1; mStoredMinVolumeTimeBear = iTime(NULL, mTF, 1); DrawLine(Red, mStoredMinVolumeTimeBear); Alert(Symbol() + Period() + "M" + " LowVoluem candle bearish on Pairs = " + symbol22Bear + symbol33Bear + symbol44Bear + symbol55Bear); } } } } if((iVolume(symbol1, mTF, 1) < (iVolume(symbol1, mTF, iLowest(symbol1, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol1, mTF, 1) < iOpen(symbol1, mTF, 1))) {mPair1Bull = 1; symbol1Bull = symbol1;} { if((iVolume(symbol2, mTF, 1) < (iVolume(symbol2, mTF, iLowest(symbol2, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol2, mTF, 1) < iOpen(symbol2, mTF, 1))) {mPair2Bull = 1; symbol22Bull = symbol2;} if((iVolume(symbol3, mTF, 1) < (iVolume(symbol3, mTF, iLowest(symbol3, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol3, mTF, 1) < iOpen(symbol3, mTF, 1))) {mPair3Bull = 1; symbol33Bull = symbol3;} if((iVolume(symbol4, mTF, 1) < (iVolume(symbol4, mTF, iLowest(symbol4, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol4, mTF, 1) < iOpen(symbol4, mTF, 1))) {mPair4Bull = 1; symbol44Bull = symbol4;} if((iVolume(symbol5, mTF, 1) < (iVolume(symbol5, mTF, iLowest(symbol5, mTF, MODE_VOLUME, 4, 2)))) && (iClose(symbol5, mTF, 1) < iOpen(symbol5, mTF, 1))) {mPair5Bull = 1; symbol55Bull = symbol5;} { if((mPair1Bull + mPair2Bull + mPair3Bull + mPair4Bull + mPair5Bull) >=2) { if(LastAlert != 2) { LastAlert = 2; mStoredMinVolumeTimeBull = iTime(NULL, mTF, 1); DrawLine(Lime, mStoredMinVolumeTimeBull); Alert(Symbol() + Period() + "M" + " LowVoluem candle bullish on Pairs = " + symbol22Bull + symbol33Bull + symbol44Bull + symbol55Bull); } } } } return(0); }