Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created January 22, 2015 04:23
Show Gist options
  • Select an option

  • Save marketcalls/5e4a87f337f1786dc8c7 to your computer and use it in GitHub Desktop.

Select an option

Save marketcalls/5e4a87f337f1786dc8c7 to your computer and use it in GitHub Desktop.
Backtesting Settings
SetTradeDelays( 1, 1, 1, 1 ); //set trade delays at 1 bar open
RoundLotSize = 50; // Define Round Lot Size of the Trading Instrument
SetPositionSize ( 100,spsShares); // Define Fixed Trading Size
SetOption( "InitialEquity", 200000 );
SetOption( "MinShares", 1 );
SetOption( "MinPosValue", 1 ); // Enable Futures Mode
SetOption( "FuturesMode", True );
SetOption( "AllowPositionShrinking", True );
SetOption( "ActivateStopsImmediately", False );
SetOption( "ReverseSignalForcesExit", False );
SetOption( "AllowSameBarExit", False );
SetOption( "CommissionMode", 2 ); // Fixed Brokerage Commissions (Per Trade)
SetOption( "CommissionAmount", 100 ); // Rs 100/Leg Commisions
SetOption( "InterestRate", 0 );
SetOption( "MarginRequirement", 10 ); //Define Margin Requirement
SetOption("AccountMargin", 10 ); //Define Account Margin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment