[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 272
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Please help me figure this out. I want the line to be correct. But the buffer gives just a line, it should be flat in the middle of the day, like the pivot line.... I have a line coming from the level of X hour of the previous day.
PLEASE UNDERSTAND.... I can't make it out.
Please help me figure this out. I want the line to be correct. But the buffer gives just a line, it should be flat in the middle of the day, like the pivot line.... I have a line coming from the level of X hour of the previous day.
PLEASE FIGURE IT OUT.... i can't figure it out(((
Well, let's say you need to take a muving at 5 o'clock on any timeframe, of course not on the daily, but on a smaller one. Let's say starting at one o'clock or less.
And draw it to 5 o'clock the next day. Here's how it's done.
Yes I did, same answer... what with
BUT THE RESULT IS WRONG!!!!!!!!!!!!!!! I took an example from the python through
The general view is like thisIT IS STILL NOT THE RIGHT RESULT.
The problem is simple to put a line HOW pivot is flat, but not by pivot level, but from a value of some hour. That's it!!! And I'm struggling and don't understand how...RIGHT the line from X hour to Time[0] !!!!!!!!!!!!!!!!
Yes I did, same answer... what with
BUT THE RESULT IS WRONG!!!!!!!!!!!!!!! I took an example from the python through
The general view is like thisIT IS STILL NOT THE RIGHT RESULT.
The problem is simple to put a line HOW pivot is flat, but not by pivot level, but from a value of some hour. That's it!!! And I'm struggling and don't understand how to...RANGE the line from X hour to Time[0] !!!!!!!!!!!!!!!!
Well I wrote a simpler example there.
If we have written some value at the point of the required hour, then it simply equates to this value.
for(int i=cbi; i>=0; i--)
{
hrp=TimeHour(Time[i+1]);
hr=TimeHour(Time[i]);
if (hr==hour && hrp!=hr) x=
fx[i]=x; // just equate indicator buffer with global variable
}
Same for anything, pivot or whatever. Simply, if it is a daily Pivot, then daily levels are calculated at this point for the daily amount of bars.
Here is the daily highs at 5 o'clock, for example. The same can be done with all other levels. Copy the code into an empty indicator, compile and see, I think this is about right.
And if you don't need to draw all the days, but only the last one, it's done a little differently. I'm just suggesting a more professional approach.
Hi all. If I wanted to place them on the chart, I would not have to draw them myself. I.e., I have an EA where I calculate some values like iMA. How does it draw the indicator on the chart? I think so, using the special function or "manually" through the trendline? Is there an easier way to display the indicator with parameters from the EA?
I have not met, maybe someone wrote a forum search for mapping buffers through trendline.
Or write it yourself, there is nothing complicated.
Hello there. How do I add indicators to the chart? I.e., I have an Expert Advisor that calculates some values like iMA. How does one draw the indicator on the chart? I think so, using the special function or "manually" through the trendline? Is there an easier way to display the indicator with parameters from the EA?
If the EA is attached to the chart and there is something inside it, then to see what it is, we need to create an indicator with exactly the same function and set the same parameters as in the EA and apply them to the chart. Or if it is a standard MT function, such as a muving, it also has to be applied to a chart and the same parameters as in the Expert Advisor have been set. The Expert Advisor itself does not draw indicators on the chart. It is drawn in the Strategy Tester only after testing. It will not do it during trading. Another way, but bothersome, is to draw objects, like dashes ObjectCreate(name+Time[0],OBJ_ARROW,0,Time[0],price); ObjectSet(name+Time[0],OBJPROP_ARROWCODE,4); or trendline segments, but then the function state on the previous bar must be saved. But it is when the indicator cannot be applied, for example, when something must be drawn by Askas and MT does not store the array of Askas or some synthetic of two pairs. That's why you have to make a twist to control it.
Well, you can also make a template (tpl) on which to attach what you need. But practically it is better to make a custom indicator, and manually set and write a new profile and when you want to trade, just call the appropriate profile. It is a technics on the verge of fantasy.