Forum

How to code Zigzag whether pointing UP or DOWN

I've found from other forum with the below script to identify whether the Zigzag pointing UP or DOWN. However, the below script has discrepancy with the original Zigzag indi. What I would like to have is to identify the current direction of the original Zigzag indi to execute Buy or Sell & close

Need help to resolve "Zero Divide"

I suspected that when the value of H=C, O=L or C=O happen in the below equation, the " Zero Divide " error will trigger. But how can I rectify the coding? Anyone care to assist? Thanks and appreciate much. double upbar_upwickvol=((High[a]-Close[a])/avgvol); double

Need Help to resolve "Array out of range"

I don't have this error previously but suddenly this " Array out of range " appear when I tried to execute the EA. Somehow, it's not giving any error during compiling in MetaEditor so far. Thanks. for ( int a = 0 ; a < ArraySize (Pairs); a++) { string CurrentPair = Pairs[a];

How to calculate AVERAGE VOLUME PER PRICE LEVEL ??

Need help to calculate AVERAGE VOLUME PER PRICE LEVEL Hello everyone, I'm wondering if there's anyone out there who could advise on how to calculate average volume per price level in that particular candlestick bar. UPBAR Eg. High 1.00010 Close 1.00008 Open 1.00005 Low