
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
It would be very ugly I know, but this is the way I can do it:
you missed candle No. 0
the same thing here
I guess there is more dynamic way... but how?
Thank you for helping
you missed candle No. 0
Candle 0 hasn't closed yet.
Maybe it's my eyes, but when you highlight text with the colour red, it makes it almost impossible to read.
Thank you so much GumRai
I know the error:
Maybe it's my eyes, but when you highlight text with the colour red, it makes it almost impossible to read.
fixed, (Special for you ;-) )
fixed, (Special for you ;-) )
Thank you, maybe it doesn't bother anyone else, but it actually makes my eyes ache trying to read black writing on a red background (and vice-versa)
Thank you so much GumRai
This is confusing, you are not using this as an MA period, you are using it for the timeframe.
Using enumerations is a good habit to form
Always try to think about how to logically simplify your code.
I have not tested this
Hi all,
Please help and advise how to do this:
What you want the indicator to do ? Arrows when it happens ? Draw a line ? Create an object of some sort ? An Alert ?
3 parameters:
Total_Candles = 40 This is your moving average period 40 - is this SMA, EMA, other ?
Above_Candles = 5
1 moving average as reference.
Condition 1:
If At least 5 candles in a row closes above Moving average over the last 40 candles, then Condition_1 is valid.
So condition 1 - the close of 5 consecutive candles to be above the MA value of the corresponding candle, then do what ?
Question:
What is the proper function to use to check Condition_1?
A little example would be appreciated : )
Thank you
A bit more detail if you want more detailed advice ?
Are you building an indicator or an EA ?
And now in order to avoid copy paste... How can we dynamically test Condition_1 for various Timeframes (from PERIOD_M15 to PERIOD_D1) ?
Example:
How to store data for:
PERIOD_M15_Condition_1 = 1;
...
PERIOD_D1_Condition_1 = 0;