Create a signal when the market drops 50 points

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #73726 quote
    pancho0423pancho0423
    Participant
    New

    Hello
    At first thanks so much for all the information you offer.
    It´s possible to program a signal, and later long position be executed when the market drops 50 points of the close of that signal?

    For example

    indicator1=RSI[5](close)
    signal= indicator < 30
    
    //buy if close < signalprice - 50 //

    Thanks

    #73729 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Yes

    If close < signal - 50 * pipsize then
       Buy......
    Endif
    #73730 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You may also use pending orders:

    Buy 1 contract at signal - 50 * pipsize limit

    but you will have to place it again, if not entered, because pending orders expire after one bar.

    #73731 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    SIGNAL must contain a price, not a logical value

    if indicator1 > 30 then
       signal = close
    endif
    #74021 quote
    pancho0423pancho0423
    Participant
    New

    thanks robertogozzi

Viewing 5 posts - 1 through 5 (of 5 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

Create a signal when the market drops 50 points


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
pancho0423 @pancho0423 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by pancho0423pancho0423
8 years, 3 months ago.

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