.

Coding help ...

Moderators: mntiwana, mrtools



Re: Coding help ...

#672
Sergey wrote:
Fri Mar 09, 2018 7:39 pm
is there an open code for this indicator?
No - even any code of any Averages (new one's) ,only old Averages might be yes
Indicator is just a tool.

Use it only if it can benefit you. Leave it if you don't know how to use it optimally.

Re: Coding help ...

#675
mrtools wrote:
Wed Mar 28, 2018 6:10 pm
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.
many thanks mrtools...


Re: Coding help ...

#676
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
Attachments
Geo IndicatorCrossCCI 17 v2 RAY.mq4
(16.94 KiB) Downloaded 162 times

Re: Coding help ...

#678
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
Indicator is just a tool.

Use it only if it can benefit you. Leave it if you don't know how to use it optimally.

Re: Coding help ...

#679
mntiwana wrote:
Fri Apr 06, 2018 7:38 am
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
Im sorry about that please kindly help to add alert .Rgds

One *physical* bar before date time.

#680
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.


Who is online

Users browsing this forum: CommonCrawl [Bot] and 3 guests