Dear All,
As you can see I am a new bee and apologies if my statements are vague or I am not making too much senseJ
I recently wrote to the formula team that I wish to enter the following values in the MACD- DEMA
· Shorter DEMA Periods: 8.3896
· Longer DEMA Periods: 17.5285
· Number of signal time period: 9.0503
and the repose I got from the formula team is copied between the dotted lines below. The formula team says that I MUST enter a positive whole number . I would like to check if there is some way to enter the numbers in decimals? Any help will be greatly appreciated.
Thanks a lot.
---------------------------------------------------------------------------------------------------------------
The formula limits the longer DEMA periods to 21 or higher so it will always be longer than the shorter time periods. I have altered the formula below to allow the longer time periods to be as low as 15 periods. However, I should point out that any values you enter after the decimal will be rounded for the moving average calculation. Our moving average function does not allow fractional time periods, only positive whole numbers (integers).
shortperiods:=Input("Enter the shorter DEMA periods: ",3,20,12);
longperiods:=Input("Enter the longer DEMA periods: ",15,50,26);
signal:=Input("Enter the number of signal line periods: ",3,50,9);
Dema(C,shortperiods)-Dema(C,longperiods);
Mov(Dema(C,shortperiods)-Dema(C,longperiods),signal,E)
----------------------------------------------------------------------------------------------------------------