EMA stop- fixed!

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #67546 quote
    LoveTheCode!
    Participant
    Junior

    Hey guys, I’m a little new here so sorry if this question has been covered previously or in the manual but I haven’t seen it! Will share my strategy when it’s complete…

    – I’m looking to buy a trending market, when it pulls back to the 10 EMA, and set my stop at the 20 EMA. This is a fixed stop rather than trailing. How can I set my stop in this way? (I.e. define stop distance as equal to the distance to 20 EMA?)

    -second, how do I set my £risk (in other words £/point ) in order to risk the same amount for every trade (bearing in mind the stop distance will vary – per my first point)?

    – finally: how can I set my profit target as a percentage of the stop distance, for example 2 x stop

    Thanks in advance for any advice- I will look to share my strategy when it’s up and running

    Thanks, Tom

    #67730 quote
    Leo
    Participant
    Veteran
    Maxrisk=15 // define pips for a stop loss
    
    Entrylong=close
    Stoplosslong= (close - MA20)/pipsize //distance in pips to MA20
    IF  stoplosslong < maxrisk then 
    Buy n contract at market
    Else
    Entrylong= MA20 + (maxrisk-spread)*pipsize
    Buy n contracts at entrylong limit
    Stoplosslong = maxrisk
    Endif
    stop ploss stoplosslong
    Nicolas thanked this post
    #68762 quote
    LoveTheCode!
    Participant
    Junior

    thanks Leo it worked fine

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

EMA stop- fixed!


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by LoveTheCode!
7 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/08/2018
Status: Active
Attachments: No files
Logo Logo
Loading...