Trigger executaion

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #135940 quote
    assafn
    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
    GraHal
    Participant
    Master
    If BuyCond and Close crosses over SAR[0.02,0.02,0.2] Then
    Buy at Market
    Endif
    assafn thanked this post
    #135954 quote
    assafn
    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
    GraHal
    Participant
    Master
    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.

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 GraHal
5 years, 8 months ago.

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