-
Play videoPlease edit your post.
For large amounts of code, attach it.
RSI[i]= iRSI(NULL,5,6,PRICE_CLOSE,i);
You are mixing apples and oranges
WHRoeder:
-
Play videoPlease edit your post.
For large amounts of code, attach it.
- You are mixing apples and oranges
Thanks for your answer
1.- Got it and edited
2.- Why? RSI[] is just an array, It is supposed to keep the values of the M5 charts
walomx: - Why? RSI[] is just an array, It is supposed to keep the values of the M5 charts
The RSI[i] controls UP[i] on the current chart. If i is 2 (2 minutes ago) why would you care about the RSI 10 minutes ago (2 on the M5?) If i is 6 why would you care about the RSI 30 minutes ago?
if(RSI[i] < 30){ UP[i]=High[i]+17*Point;
WHRoeder:
The RSI[i] controls UP[i] on the current chart. If i is 2 (2 minutes ago) why would you care about the RSI 10 minutes ago (2 on the M5?) If i is 6 why would you care about the RSI 30 minutes ago?
The RSI[i] controls UP[i] on the current chart. If i is 2 (2 minutes ago) why would you care about the RSI 10 minutes ago (2 on the M5?) If i is 6 why would you care about the RSI 30 minutes ago?
It's just an example, i am trying to develop an strategy based on longest time frames, but the question is not why is how?, if the condition is true on the M5, and i is 2 and 2 is placed on 8:00 hrs i should have 5 down arrows on the M1 chart, from 8:00 to 8:04, but it plot me nonsense.
Or lets say on the M5 i have an UpBar on the last closed bar or on the last bar developing, i can plot M1 price action long with up arrow for each corresponding M1 bar with the Up Bar on M5
How?
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
i can't get anything related to another timeframe plot correctly in my time frame i am using. Lets say i am in the 1 min chart and want to plot data from the 5 min, i want 5 min upbars plot as up arrow in 1min chat and
5min < 30 RSI, plot as down arrow in my 1 min chart, here is my code (not doing what it should):
Any ideas?
Thanks!!