code help for entry condition

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #106493 quote
    CJB64CJB64
    Participant
    New

    Hi,

    I am looking for some help in adding an extra condition for entry to an existing strategy but I just can’t get it working! Basically I think it will be something like the following:

    limit = 25
     
    v1 = last 5EMA value
    v2 = last Close
    C2 = (v2-v1) < limit
     
    If C1 AND C2 then
       Buy 1 point at market
    I know what I need to add in my head but can’t think of the PRT language to achieve it! I have attached an image which you may find helpful in case I have explained it clearly. Any help much appreciated!
    crossover-entry-condition.jpg crossover-entry-condition.jpg
Viewing 1 post (of 1 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

code help for entry condition


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
CJB64 @cjb64 Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/04/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...