Create a signal when the market drops 50 points

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #73726 quote
    pancho0423
    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
    robertogozzi
    Moderator
    Master

    Yes

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

    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
    robertogozzi
    Moderator
    Master

    SIGNAL must contain a price, not a logical value

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

    thanks robertogozzi

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

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

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