| You are not authorized to post a reply.
|
|
| Author |
Messages |
|
bumba Posts:7
 |
| 05-08-2010 3:11 AM |
Alert
|
| Dear Murray et al.,
I am trading end of the day. TradeRisk is used to calculate EntryNumUnits in TradePlan. TradeRisk is calculated as difference between Close and StopOrder. I do not know if the system will enter long or short position tomorrow, so TradeRisk is calculated as maximum between risks for going long and going short: SetTradeRisk(Max((Close-StopOrderLong),(StopOrderShort-Close))). That’s not perfect. I would like to be able to set separate TradeRisks for entering long and entering short. I have tried to use conditional rules (If MarketPosition=1 Then SetTradeRisk(Close-StopOrderLong) Else ..), but it does not work because I am not in a trade yet. Have you got any ready solutions or fresh ideas?
Thank you. Boris.
|
|
|
|
|
murray Posts:519
 |
| 05-10-2010 3:38 PM |
Alert
|
| Let me think about it. |
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|