Page 68 of 157

Re: Coding Help

Posted: Wed Mar 28, 2018 5:34 pm
by mahnooj
hi sir,

this indi was corrected by mladen a few years ago, it seems not working now, can this be corrected please.

Re: Coding Help

Posted: Wed Mar 28, 2018 6:10 pm
by mrtools
mahnooj wrote: Wed Mar 28, 2018 5:34 pm hi sir,

this indi was corrected by mladen a few years ago, it seems not working now, can this be corrected please.
Try this version.

Re: Coding Help

Posted: Wed Mar 28, 2018 6:30 pm
by mahnooj
mrtools wrote: Wed Mar 28, 2018 6:10 pm

Try this version.
many thanks mrtools...

Re: Coding Help

Posted: Wed Mar 28, 2018 9:26 pm
by TEAMTRADER
I have tried to get this indicator support and resistance horizontal rays to 'stop' when it is crossed by the price but retaining the 'ray' horizontal.
Can this be fixed?
I have spent almost a year trying to avoid using this indicator as the 'ray' part can be disabled but visually the chart needs the 'ray' to more easily pick up trades.
Thanks
TEAMTRADER

Re: Coding Help

Posted: Fri Apr 06, 2018 6:55 am
by Cheepeys
PLEASE ALERT HELP NEEDED FOR THIS INDICATOR ON 1HR SUPP/RESIST WHEN PRICE BREAKOUT FROM IT.

Re: Coding Help

Posted: Fri Apr 06, 2018 7:38 am
by mntiwana
Cheepeys wrote: Fri Apr 06, 2018 6:55 am PLEASE ALERT HELP NEEDED FOR THIS INDICATOR ON 1HR SUPP/RESIST WHEN PRICE BREAKOUT FROM IT.
Capital letters do not and never take any advantage,always try to write in standard/usual phrase

Re: Coding Help

Posted: Fri Apr 06, 2018 2:38 pm
by Cheepeys
mntiwana wrote: Fri Apr 06, 2018 7:38 am
Capital letters do not and never take any advantage,always try to write in standard/usual phrase
Im sorry about that please kindly help to add alert .Rgds

Re: Coding Help

Posted: Fri Apr 06, 2018 6:15 pm
by FxVolumes
Hello again,
I need your help (always...)
I am trying to draw VLINEs one bar (what ever the time frame is switched) before a date time (in my case, begining of each week).

Code: Select all

datetime t = iTime(NULL,PERIOD_W1,i);
      
      int Bars_Ahead =1;
      
      if (t>0)
       {
        ObjectCreate("Line "+DoubleToStr(i,0),OBJ_VLINE,0,t,0);
        //ObjectSet("Line "+DoubleToStr(i,0),OBJPROP_TIME,t);
        ObjectSet("Line "+DoubleToStr(i,0),OBJPROP_STYLE,STYLE_SOLID);
        ObjectSet("Line "+DoubleToStr(i,0),OBJPROP_COLOR,colir);
        ObjectSet("Line "+DoubleToStr(i,0),OBJPROP_WIDTH,1);
        ObjectSet("Line "+DoubleToStr(i,0),OBJPROP_BACK,true);
        
        ObjectCreate("Line2 "+DoubleToStr(i,0),OBJ_VLINE,0, t - (Bars_Ahead * Period()*60),0);
thought i have found the answer by

Code: Select all

t - (Bars_Ahead * Period()*60)
But it didn't work.

I want the 2nd VLINE place ONE BAR before the datetime "t".

If I am on D1 PERIOD, I want the 2nd VLINE one bar (one day) before,
If I am on H4 PERIOD, I want the 2nd VLINE one bar (4 hours) before,
If I am on H1 PERIOD, I want the 2nd VLINE one bar (1 hour) before ... etc

Can you help me please?

Regards.

Re: Coding Help

Posted: Thu Apr 12, 2018 3:42 am
by alpha24
Dear Mrtools ,
I tried to add NLMA in this code there is no error but can not displayed on chart.
Please correct it. if there is already awesome oscillator with all averages and prices
please give me link.(searched everywhere but can't get)

Re: Coding Help

Posted: Thu Apr 12, 2018 4:19 am
by mrtools
alpha24 wrote: Thu Apr 12, 2018 3:42 am Dear Mrtools ,
I tried to add NLMA in this code there is no error but can not displayed on chart.
Please correct it. if there is already awesome oscillator with all averages and prices
please give me link.(searched everywhere but can't get)
Added all the averages.