I am trying to change the stoploss depending on the day of the week. The purpose is to reduce the risk in the days that there are news from the FED for example. Anyone knows how to implement it?
Re: Different stoploss depending on the day of the week
[Re: nanotir]
#453821 08/15/1523:4808/15/1523:48
I think you can do that inside a TMF or a trade enumeration loop . . An example with a trade enumeration loop:
Code:
if (dow() == MONDAY)//or whatever day the FED releases news
for(open_trades)
{
if (!TradeIsVirtual and !TradeIsPool)//unless you want to modify these trades...
TradeStopLimit = TradeStopLimit / 2;//or whatever you want
}
Last edited by Mithrandir77; 08/16/1520:35. Reason: spelling error (TradeIsVirutal)
Re: Different stoploss depending on the day of the week
[Re: Mithrandir77]
#455132 10/10/1521:2610/10/1521:26