Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PositionSize = MarginDeposit = 1;
- Buy = Ref(C > O, -10);
- Short = NOT Buy;
- Sell = 1;
- Cover = 1;
- BuyPrice = O;
- ShortPrice = O;
- SellPrice = C;
- CoverPrice = C;
- AvgRange = Ref(ATR(15), -1); // uzywamy Ref(x, -1), bo wchodzimy na otwarciu
- ApplyStop(stopTypeLoss, stopModePoint, 0.1 * AvgRange, True);
- ApplyStop(stopTypeProfit, stopModePoint, 1.9 * AvgRange, True);
Advertisement
Add Comment
Please, Sign In to add comment