Trigger executaion

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #135940 quote
    assafnassafn
    Participant
    Average

    Hello,

    I have a set of rules that function as a set-up but I don’t want the Backtest to buy until the parabolic SAR crosses below the price and confirms.

    Is there a way to do this?

    #135944 quote
    GraHalGraHal
    Participant
    Legend
    If BuyCond and Close crosses over SAR[0.02,0.02,0.2] Then
    Buy at Market
    Endif
    assafn thanked this post
    #135954 quote
    assafnassafn
    Participant
    Average

    Thanks GraHal but that’s not exactly what I was looking for:)

    Let’s say these are my conditions:

    c1 = RSI [14] CROSSES UNDER 30

    c2 = ADX[14] >40

    x = SUMMATION[10](c2)

    Whenever conditions c1 and x are met the system will wait until the SAR is triggered.

    #135977 quote
    GraHalGraHal
    Participant
    Legend
    If C1 and X Then
    Flag = 1
    Endif
    
    If  Flag and Close crosses over SAR[0.02,0.02,0.2] Then
    Buy at Market
    Flag = 0
    Endif
    assafn thanked this post
Viewing 4 posts - 1 through 4 (of 4 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

Trigger executaion


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
assafn @assafn Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by GraHalGraHal
6 years, 3 months ago.

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