FXCM Contract Usage
Posted: 14 Oct 2010
When I place an order from within a MC strategy to buy "TradeSize" contracts (see code below) the trade sizes are ranging from 10-25 when Initial Capital = $100,000. TradeSize is being expressed in the base currency where as it appears the actual position being taken is in contracts. Does MC automatically convert a trade size from currency to contracts?
Also, does my above usage of bigpointvalue look correct?
Thanks in advance,
Adam
Code: Select all
inputs: ATRStop( 0 ), RiskPerTrade(0.03);
variables: ATR( 0 ), EquityAtRisk( 0 ), PointsAtRisk( 0 ), TradeSize( 0 );
//Caculate ATR for ATR trailing stop
ATR = AvgTrueRange( ATRLength );
//Calculate dollar amount of equity at risk
EquityAtRisk = RiskPerTrade * (InitialCapital + netprofit);
//Calculate points at risk
PointsAtRisk = absvalue( entryprice - (ATR * ATRStop) ) * bigpointvalue;
//Caculate position size
if PointsAtRisk = 0 then
TradeSize = 0
else
TradeSize = EquityAtRisk / PointsAtRisk;
Thanks in advance,
Adam