HELP - this code is not refreshing itself
Results 1 to 4 of 4

Thread: HELP - this code is not refreshing itself

  1. #1
    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);

  2. #2
    Quote Originally Posted by ;
    quote What's it with you and writing indis that utilize future data? bool up=true; for(i=limit-2; igt;=0; i--) (currentgt;0)) up= true; if(! Up) ExtBuffer2=current; ExtBuffer1=0.0; else ExtBuffer1=current; ExtBuffer2=0.0; When confine == 1, I'll equal -1. You can't access a buffer or any variety by [-1], it does not exist. Adjust your code so that it does not appear into...
    thank you Gumrai, you constantly helping me out , is it ok asking you to add alerts arrows on cross when the price is crossing the 0.0 level ?

    Thank you a lot again.

  3. #3
    Quote Originally Posted by ;
    quote thank you, you constantly helping me out , is it ok asking you to include alerts arrows to cross once the price is crossing the 0.0 degree please? Thank you.
    I'll be happy to assist, but you have to sort your code so that it will not use future data .

  4. #4
    Quote Originally Posted by ;
    Hello there! , so. . , I have this code and its not refreshing itself. . , when the chart isn't refreshed by shing the Timeframe this code looks messed up. . I might be very glad if someone could resolve the sterile issue on this, thanks to your help
    What's it with you and composing indis that use future data?

    Inserted Code bool up=true; for(i=limit-2; igt;=0; i--) (currentgt;0)) up= true; if(! Up) ExtBuffer2#91;#93;=current; ExtBuffer1#91;#93;=0.0; else ExtBuffer1#91;I#93;=current; ExtBuffer2#91;I#93;=0.0;

    When confine == 1, I will equal -1.
    You cannot access a buffer or any array by [-1], it doesn't exist.
    Adjust your code so that it does not look in the future

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.