TrendEMA Strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #91069 quote
    Simba
    Participant
    Junior

    Hey Guys,

    I have a problem with an allegedly easy idea.

    The idea is that

    1. the system goes LONG when Close is over EMA50 and EMA50 is over EMA200. It sells the LONG when the close fall back under EMA50,
    2. the system goes SHORT when Close is under EMA50 and EMA50 is over EMA 200. The TARGET PROFIT is EMA200,
    3. the system goes SHORT when Close is under EMA50 and EMA50 is under EMA200. EXITSELL is when Close is over EMA50.
    4. the system goes LONG when Close is over EMA50 and EMA50 is under EMA200. The TARGET PROFIT is EMA200.

    How can i code the system that it only take the TARGET PROFIT by these two specific constellations? I tried also to set there an identifier (i), but that does not help. (Or I made a logical mistake (what clearly happend :D))

    As far as I know, the TARGET PROFIT is always the distance in points and not the target pricelevel, isn’t it?

    May somebody can help me? 🙂

    #91075 quote
    robertogozzi
    Moderator
    Master

    TARGET PROFIT    n is the target profit in price difference (if you buy at 1.0000 and want your TP at 1.0050 then you have to use n=0.0050)

    TARGET pPROFIT n is the target profit in pips   difference (if you buy at 1.0000 and want your TP at 1.0050 then you have to use n=50)

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

TrendEMA Strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Simba @simba Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
7 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/11/2019
Status: Active
Attachments: No files
Logo Logo
Loading...