Delay the order by xx minutes in case of loss

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #70184 quote
    ramarama
    Participant
    Senior
    defparam cumulateorders = false
    DEFPARAM PRELOADBARS = 9000
    
    x=1
    
    c1=high[3600]-close[1]
    ctime1 = time > 080300 and time < 161800
    IF not onmarket and ctime1 and c1>=50 and c1<=75  THEN
    sellshort 1 perpoint at lowest[5](low)-x stop
    ENDIF
    
    Set stop loss 6
    set target profit 36

    I am running the above code

    want the the PRT code for

    c1= stop loss triggered  then

    c2= target triggered then

    t1 = when the stop loss triggered( in other words last order was loss)

    t2=when profit booked(in other words last order was profit)

    t3= t1+ t(minutes say 30 minutes)

    t4=t2+t

     

    I start the program at  8 am

    then based on the loss or profit

    if ( c1 and t3) then

    run my code again

    ——-

     

    endif

     

    what is the c1,c2,t3,t3 in PRT language

Viewing 1 post (of 1 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

Delay the order by xx minutes in case of loss


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
rama @rama Participant
Summary

This topic contains 1 voice and has 0 replies.

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