Hi, I am trying to achieve the following result: Everything I trail my stop loss I want to increase the size of my positions
I know the following TMF code is wrong, but how is the correct way to achieve this?
Code
int TrailingAndAdding(var lookback)
{
if (TradeIsOpen && TradeProfit > 0 )
{
if (TradeIsLong)
{
TradeStopLimit = max(TradeStopLimit, LL(lookback, 0));
//Increase my Position by one unit
TradeLots++;
}
else if (TradeIsShort)
{
TradeStopLimit = min(TradeStopLimit, HH(lookback, 0));
//Increase my Position by one unit
TradeLots++;
}
}
return 0;
}