How to retrieve candle size for strategy - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Strategy Development (https://forum.gekko.wizb.it/forum-12.html) +--- Thread: How to retrieve candle size for strategy (/thread-58002.html) |
How to retrieve candle size for strategy - PGTART - 09-09-2019 I would like to make my strategies less depent on time intervals. EA a max price swing between 5 minutes is statistically smaller then with 60 minute candles. So when i use constants in my math i'd like to scale them by a factor of candle size ea : candlesize ------------- * constant 60 How can i retrieve candlesize inside the strategy ? RE: How to retrieve candle size for strategy - rengel - 09-10-2019 Hi Peter, you can do this with the help of the tradingAdvisor. Code: var config = require ('../core/util.js').getConfig(); Another way to use the different candle sizes similar to the way you worked with different periods of the same indicator before, you could do a multiple timeframe approach. There are strategies incorporating this approach here on this forum. Regards, Rainer RE: How to retrieve candle size for strategy - PGTART - 09-12-2019 (09-10-2019, 09:39 AM)rengel Wrote: Hi Peter, Thanks !!!, I understand how to add candles, its rather though for margin differences i'd like to use it for. (like in math related to distances from indicator results) Maybe do you also know how to set the start trading amount to a fixed number (start with 1000 coins) and retrieve the real trade profit result after a short ?. RE: How to retrieve candle size for strategy - buysmartfitness - 12-16-2020 The Candle Body Size marker restores the total body tallness of a flame on ... The cautions can likewise be utilized to backtest exchanging methodologies or execute demo |