Piotr Rysak wrote:
Thanks for response.

I use your setup, but profits are still in .000x USD
I use this setup in

Backtetser setting:
Initial equity: 1000
Future mode: checked
Account margin: 100

Contract specification for audusd is:
RoundLotSize: 1
MarginDeposit: 0
Tick Size: 0.00001
PointValue: 0.0001

I don't use tick data from Oanda but from metatrader.

Could you help me with proper setting?

Regards,

Piotr Rysak
|

/* Backtester Settings*/
SetOption("FuturesMode" ,*True*);
SetOption("ActivateStopsImmediately",1);
SetOption("PriceBoundChecking", 1);

/*Contract Specifications*/
*MarginDeposit* = *C*;
*PointValue* = 1;

/*Trade Entry*/
*Buy* = Cross( RSI(), 30 );
*Short* = Cross( 70, RSI() );
*BuyPrice* = *ShortPrice* = *C*;

/*Trade Exit*/
*Sell*= *Cover*=0;
ApplyStop(*stopTypeLoss*,*stopModePoint*,20**TickSize*,1);
ApplyStop(*stopTypeProfit*,*stopModePoint*,20* *TickSize*,1);

// Trade Size:  10000 units
SetPositionSize( 10000, *spsShares* );|

Reply via email to