pipsize above ema

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #145232 quote
    Monochrome
    Participant
    Senior

    Is there a way to only activate buy signal when the close is a certain pipsize above ema?

    This is what i tried –

    buydistance = 5
    c2 = ExponentialAverage[20](close)
    if close> c2+buydistance*pointsize and not onmarket then
    BUY 1 Contract AT Market
    SET TARGET pPROFIT 10
    SET STOP   pLOSS   10
    endif
    #145234 quote
    Nicolas
    Keymaster
    Master

    Your code is correct!  Do you think that is not working someway?

    Monochrome thanked this post
    #145238 quote
    Monochrome
    Participant
    Senior

    Thank you for confirming. I wasnt sure if this was the problem or something else.

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

pipsize above ema


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Monochrome @monochrome Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Monochrome
5 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/24/2020
Status: Active
Attachments: No files
Logo Logo
Loading...