Guest User

AFL na konkursik

a guest
Dec 18th, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. PositionSize = MarginDeposit = 1;
  2.  
  3. Buy = Ref(C > O, -10);
  4. Short = NOT Buy;
  5.  
  6. Sell = 1;
  7. Cover = 1;
  8.  
  9. BuyPrice = O;
  10. ShortPrice = O;
  11. SellPrice = C;
  12. CoverPrice = C;
  13.  
  14. AvgRange = Ref(ATR(15), -1); // uzywamy Ref(x, -1), bo wchodzimy na otwarciu
  15. ApplyStop(stopTypeLoss, stopModePoint, 0.1 * AvgRange, True);
  16. ApplyStop(stopTypeProfit, stopModePoint, 1.9 * AvgRange, True);
Advertisement
Add Comment
Please, Sign In to add comment