There was a lot of coding done before us fledgling coders discovered the ENUM_??? thingy. For example, my early TradingTimeFrame inputs had to be entered as minutes, so the H4 had to be entered as 240.trader689 » Sat Feb 20, 2021 6:55 pm wrote:thanks r1ch4rd, when I opened it in editor I saw in the comments that MA method has to be set to 0 to make it SMA, have changed both in the indicator as well as in the inputs now
if you could share the Tdesk setfile tomorrow would be appreciated
trader
These days we have ENUM_TIMEFRAMES which presents the user with a list of acceptable timeframes. We have ENUM_???? for most thingies. We can invent an ENUM_ for anything not included with Empty4.
In future and when dealing with stuff coded back in the Dark Ages, assume that an input of 0 represents the first possible setting, 1 represents the next and so on.
So, using the moving average indi as an example: an input into a crap custom abortion or EA pre the discovery of ENUM_: 0 would represent an SMA; 1 exponential, 2 smoothed etc.