09-17-2019, 08:30 PM
(09-17-2019, 08:11 PM)PGTART Wrote:(09-17-2019, 07:12 PM)QueefWellington Wrote:(09-17-2019, 02:01 PM)PGTART Wrote: [size=large][color=#993399]
Magica, MediumOut, ShortSight, and HighShot as well.
Can now use a percentage with a new toml and code file, in the toml I have now the option: [b]UsePercentage = true
If set to true then those 4 variables take a percentage of the long moving average (which makes most sense I believe, in the kind of math i use).
In this case 100% equals 1, so for example 5% equals 0.05 (But since BTC is so high maybe you like to test 0.005 .. percetage as a fraction.
[/b]
So what is it a percentage of? So when you say "100% = 1" 1 what?
Wouldn't it make more sense for it to be the actual percentage of the price? So for example if you set it to 10 it's 10% of the price?
100% = 1
25% = 0.25
1% =0.01
I've always found it easier to use percentages this way..it is a percentage of the long moving average.
The long moving average is the average price of a coin over x days its under PeriodAverage in the toml file
So its not the current candle (thats not ideal for my math, that tries to find anomalies).
So if you wanted to set magica to 10% of the long ma you would set magica to 0.1 in toml? Your code then does:
this.Toml.Magica = this.settings.Swings.Magica * maLong;
I might be being pedantic, but isn't that a fraction?