ALLOWEDSIDE read from text
Posted: Mon Aug 14, 2017 11:42 am
- Code: Select all
strategy.parameters:addString("ALLOWEDSIDE", "Allowed side", "Allowed side for trading or signaling, can be Sell, Buy or Both", "Both");
strategy.parameters:addStringAlternative("ALLOWEDSIDE", "Both", "", "Both");
strategy.parameters:addStringAlternative("ALLOWEDSIDE", "Buy", "", "Buy");
strategy.parameters:addStringAlternative("ALLOWEDSIDE", "Sell", "", "Sell");
Is it possible to give a value to the strategy to decide on which side it will play by reading a text on my computer?
Z:\PC1\TrendDn.txt
Z:\PC1\TrendUp.txt
So if there is a TrendDn.txt on Dir Z:\PC1\ play only Sell
and if there is a TrendUp.txt on Dir Z:\PC1\ play only Buy?