Hi ,

I am having diffuculties to calculate rigth order size for live trading with Oanda.  Leverage in the account is set for 30 for the asset. Basically an Apha triger  to place a market order while having no open position for full available margin in the account , and after when position profits ie there is available margin to trade, trying to place a new market order with avaialble margin for pyramiding. Calculating postion size by simply available margin / asset price and multiplying with leverage worked very well in back tests however in live trading it always calculate much bigger size than tradable.