Strategy conversion from ProQuant

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

    Hello Community,

    with ProQuant shutdown I wanted to try atleast one of my strategies on a new platform. Sadly my skills are not good enough for programming it myself. Maybe someone can take a look at it and help me out?

    Thanks a lot

    Revosh

    1D-GBPUSD-NB.txt
    #157863 quote
    Nicolas
    Keymaster
    Master

    Please describe the strategy the best you can, and I will translate the code you provided.

    #158147 quote
    Revosh
    Participant
    New

    Hello Nicolas,

    thank you for your response. I use the strategy on the daily GBPUSD. Its based on three indicators as you can see in the code. Its a rahter “slow” strategy with entrys only every 1-2 months. I backtested it for 6 months on ProQuant with good results. I just realised there is no SL in the code I gave you. If I remember correctly it had a fixed SL with a 7 % SLI (stop loss impact).

    ProQuant had a simple system which entered a position when the entry rules where met. It was based on the long entry rules and simply mirrored it in the opposit for short entrys.

    I hope this is enough information for you. If not or you need anything specific, feel free to aks again.

    Thank you very much!

    #158277 quote
    Nicolas
    Keymaster
    Master

    Here is the translated code:

    wpr = Williams[6](close)
    imacd = MACDline[3,16,4](close)
    imacdSignal = MACDSignal[3,16,4](close)
    stdDev = std[21]
    vol=volume
    
    //Rules/triggers
    longEntryRule = wpr > -43
    longEntryRule2 = imacd crosses over imacdsignal
    longEntryRule3 = stddev>stddev[1] and stddev[1]<stddev[2]//ChangesDirectionUpwards(stdDev)
    
    shortEntryRule = wpr < -57
    shortEntryRule2 = imacd crosses under imacdsignal
    shortEntryRule3 = stddev>stddev[1] and stddev[1]<stddev[2]//ChangesDirectionUpwards(stdDev)
    
    longExitRule = vol>vol[1] and vol[1]<vol[2]//ChangesDirectionUpwards(volume)
    
    shortExitRule = vol<vol[1] and vol[1]>vol[2]//ChangesDirectionUpwards(volume)
    
    //Signals
    
    if longEntryRule and longEntryRule2 and longEntryRule3 then 
    buy at market 
    endif 
    if shortEntryRule and shortEntryRule2 and shortEntryRule3 then 
    sellshort at market
    endif 
    if longExitRule then 
    sell at market 
    endif 
    if shortExitRule then 
    exitshort at market 
    endif 
    set stop %loss 7
    #158343 quote
    Revosh
    Participant
    New

    Thank you alot!

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

Strategy conversion from ProQuant


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Revosh @revosh Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Revosh
5 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/13/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...