i found this indicator code that does what i need, but it lacks the shortcut key for revealing the next bar... it could be a keyboard shortcut or better yet a visual key that we click with the mouse.
i hope someone could help me...
thanks in advance
//+------------------------------------------------------------------+ //| HideTheFuture.mq4 | //| | //| | //+------------------------------------------------------------------+ #property copyright " " #property link " " #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Red //---- buffers double buf1[]; double buf2[]; extern color BackgroundColor=White; extern datetime HidingDate; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_HISTOGRAM,STYLE_SOLID,5,BackgroundColor); SetIndexBuffer(0,buf1); SetIndexStyle(1,DRAW_HISTOGRAM,STYLE_SOLID,5,BackgroundColor); SetIndexBuffer(1,buf2); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); //---- for(int i=MathMin(Bars-counted_bars-1,iBarShift(Symbol(),Period(),HidingDate,false));i>=0;i--){ buf1[i]=High[i]; buf2[i]=Low[i]; } //---- return(0); } //+------------------------------------------------------------------+
Are you just trying to do this so you can practice manual trading in the tester? If so then you can download free trade simulators that will do the job much better...?
Hi owal
Are you just trying to do this so you can practice manual trading in the tester? If so then you can download free trade simulators that will do the job much better...?
Yes, i'm doing this because i need to practice, but not in the tester cause i need to see the same pair in 3 or 4 different time frames and the tester doesn't allow me to switch time frames.
So adding this indicator to a real time chart or a offline chart will let me practice and see multi time frames, the only thing missing is a shortcut key so that i can move to the next bar without having to enter the indicator option and change the date manually every time i want to advance... can you please help me?
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
is it possible to create an indicator that works like a vertical line that hides the history bars to it's right?
the idea is to, for example attache it to the H1 chart and beside hiding the bars to the right, also hide them on the other timeframes and when we move it 4 bars in H1 then it reveals 1 bar in H4 and so on...
also wold be nice if we could have shortcut key for moving the line back and fourth.
I think that if it is possible it wold be a great tool for manual testing strategy's that use more than one timeframe analysis
Thanks