Problem with Preparing for Automatic Trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10124 quote
    pdrh
    Participant
    Average
    DEFPARAM CumulateOrders=False
    indicator1=SMI[14,3,3](close)
    indicator2=Average[3](SMI[14,3,3](close))
    c1=(indicator1 CROSSES OVER indicator2)
    indicator3=SMI[14,3,3](close)
    c2=(indicator3 <= -45)
    indicator4=Average[number](WeightedClose)
    c3=(high>=indicator4)
    IF c1 AND c2 AND c3 THEN
    BUY 1 CONTRACT AT MARKET
    ENDIF
    indicator5=SMI[14,3,3](close)
    c4=(indicator5 CROSSES UNDER 40)
    IF c4 THEN
    SELL AT MARKET
    ENDIF
    SET STOP pLOSS 30
    SET TARGET pPROFIT 100

     

    I have written the above code but get the error message
    “REPLACE VARIABLES WITH SPECIFIC VALUES IN THE CODE OF THE TRADING SYATEM ”
    Can somebody help me here please

    
    
            
            
        
    #10133 quote
    grizzly
    Participant
    Average

    Fix this line with ‘number’ as a number

     

    
    indicator4=Average[number](WeightedClose)
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Problem with Preparing for Automatic Trading


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
pdrh @pdrh Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by grizzly
9 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/03/2016
Status: Active
Attachments: No files
Logo Logo
Loading...