Skip to content

Instantly share code, notes, and snippets.

@marketcalls
Created September 1, 2018 15:32
Show Gist options
  • Save marketcalls/d391fdc282d560a73126b827b07b4ddc to your computer and use it in GitHub Desktop.
Save marketcalls/d391fdc282d560a73126b827b07b4ddc to your computer and use it in GitHub Desktop.
Buy Today and Sell at Next Day Open
_SECTION_BEGIN("Buy Today and Sell at Next Day Open");
SetTradeDelays(0,0,0,0);
Buy = timenum() ==151559;
Sell = TimeNum() == 092959;
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
BuyPrice = close;
SellPrice = close;
//Set Round Lot Size of Nifty Futures as 75
SetPositionSize(1*RoundLotSize,spsShares);
_SECTION_END();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment