Hi there! , so. . , I have this code and its not refreshing . . , once the chart isn't refreshed by switching the Timeframe this code appears messed up. .
I will be very glad if someone could fix the refreshing issue on this, thanks to your aid
and it will be amazing if there was a popup audio alarms and an arrow once the line is crossing the middle line that'll be simply wonderful!
Thanks
Inserted Code #property indior_separate_window #property indior_buffers 3 #property indior_color1 Gold #property indior_color2 DodgerBlue #property indior_color3 Crimson #property indior_width1 3 #property indior_width2 4 #property indior_width3 4 #property indior_level1 0 #property indior_levelstyle 0 #property indior_levelcolor Gold #property indior_levelwidth 3 extern int span =2; double ExtBuffer0#91;#93;; double ExtBuffer1#91;#93;; double ExtBuffer2#91;#93;; int init() SetIndexStyle(0,DRAW_LINE); SetIndexStyle(1,DRAW_HISTOGRAM); SetIndexStyle(2,DRAW_HISTOGRAM); IndiorDigits(Digits 1); SetIndexBuffer(0,ExtBuffer0); SetIndexBuffer(1,ExtBuffer1); SetIndexBuffer(2,ExtBuffer2); IndiorShortName(); SetIndexLabel(0,NULL); SetIndexLabel(1,NULL); SetIndexLabel(2,NULL); return(0); int begin () //int period=10; int limit; int counted_bars=IndiorCounted(); dual prev,current,older; dual Value=0,Value1=0,Value2=0,Fish=0,Fish1=0,Fish2=0; dual price; dual MinL=0; dual MaxH=0; if(counted_barsgt;0) counted_bars--; limit=Bars-counted_bars; for(int I=0; ilt;limit; I ) MaxH = High#91;Highest(NULL,0,MODE_HIGH,interval,I)#93;; MinL = Low#91;Lowest(NULL,0,MODE_LOW,interval,I)#93;; price (Top #91;I#93; Low#91;I#93;-RRB-/2; Worth = 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) 0.67*Value1; Value=MathMin(MathMax(Value,-0.999),0.999); ExtBuffer0#91;I#93;=0.5*MathLog((1 Value)/(1-Value)) 0.5*Fish1; Value1=Worth; Fish1=ExtBuffer0#91;I#93;; bool up=true; for(I=limit-2; igt;=0; I--) (currentlt;0)) up= false; if (((currentgt;0)(prevlt;0)) return(0);