You have a chance to get $30 indicator for sharing your code!
I am giving away 5 activation keys for contest price, which may be used for one of following commercial products.
RangeBar_e.ex4 (Range bars offline chart generator)
RenkoBar_e.ex4 (Renko offline chart generator)
TickBar_e.ex4 (Constant volume bar offline chart generator)
MeanrenkoBar_e.ex4 (Mean Renko offline chart generator)
The above generators have 6 month free use on a demo account.
For those, who need manuals - Open the User Guide for Offline Charts
Your task is very simple: You are supposed to create a custom indicator, which could serve for auto-setup of the main entry in the above mentioned offline chart generators.
The solution will need a simple explanation, what the calculation is based on. All the contest contributions will be shared here. I will pick up 5 best solutions in a month and provide winners with activation keys.
Basic code example for the external indicator providing the main control value follows.
I am looking forward to your contributions
Ovo
I am giving away 5 activation keys for contest price, which may be used for one of following commercial products.
RangeBar_e.ex4 (Range bars offline chart generator)
RenkoBar_e.ex4 (Renko offline chart generator)
TickBar_e.ex4 (Constant volume bar offline chart generator)
MeanrenkoBar_e.ex4 (Mean Renko offline chart generator)
The above generators have 6 month free use on a demo account.
For those, who need manuals - Open the User Guide for Offline Charts
Your task is very simple: You are supposed to create a custom indicator, which could serve for auto-setup of the main entry in the above mentioned offline chart generators.
Attached Image
The solution will need a simple explanation, what the calculation is based on. All the contest contributions will be shared here. I will pick up 5 best solutions in a month and provide winners with activation keys.
Basic code example for the external indicator providing the main control value follows.
Inserted Code
#property indicator_chart_window #property indicator_buffers 2 /** Do not modify start() function. * Modify "mainValue()" and "expires()" functions. */ int start() { double ind_buffer1[1]; SetIndexBuffer(0,ind_buffer1); double ind_buffer2[1]; SetIndexBuffer(1,ind_buffer2); ind_buffer1[0] = mainValue(); ind_buffer2[0] = expires(); return(0); } /** The returned value is schedule of the next recalculation */ datetime expires() { datetime nextCheck = 0; // some calculation, e.g. update in 24 hrs nextCheck = TimeCurrent() + 24*60*60; // end of calculation return(nextCheck); } /** The returned value becomes the main control of the offline chart * (step points, brick points, range points, volume ticks) */ double mainValue() { double value = 0; // result value initializes // some calculation for value, i.e. value = 300; // end of calculation return(value); // returns computed range value in points }
I am looking forward to your contributions
Ovo