----- Original Message -----
Sent: Saturday, June 02, 2007 6:56 PM
Subject: [amibroker] CBI: Getting Trade direction (bool IsLong)
Hello,
I need to access the trade direction inside my CBI code or in other words i want to know if trade.GetProfit comes from a long or short trades and depending on the direction i want to make different R-Multiple calculations. My calculation should look like
if ( IsLong )
{
RMultiple = trade.GetProfit() / Long_InitialRiskAtEntry;
}
else
RMultiple = trade.GetProfit() / Short_InitialRiskAtEntry;
Can someone tell me how to do it ?
Thanks in advance !
Regards
Trinolix