pipsize above ema

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #145232 quote
    MonochromeMonochrome
    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
    NicolasNicolas
    Keymaster
    Legend

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

    Monochrome thanked this post
    #145238 quote
    MonochromeMonochrome
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 MonochromeMonochrome
6 years ago.

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