Issue with TotalOrderProfit
luisneves: Could you show me what am doing wrong ?
TrailedPrice = TotalOrderProfit - ProfitToProtect; if(TotalOrderProfit <= TrailedPrice)CloseAll(); // Substituting TradiledPrice: if(TotalOrderProfit <= TotalOrderProfit - ProfitToProtect) // Subtracting TotalOrderProfit: if( 0 <= - ProfitToProtect) // Always false w/ positive ProfitToProtect
Hi all,
Using the following code am looking to close orders once the TotalOrderProfit gets equal or less than TrailedPrice.
I have put a print to check why is that not working and what I see is that the price do not come down.
Could you show me what am doing wrong ?
Thank you in advance
Luis