Newbee to prorealcoding would appreciate tips

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

    Hi all,

    I want to learn and try to use proreal code to trade. I want to start with a strategy which probably is very simple. I want to go long when ma9 crosses above ma20 and short when ma20 go below ma9. I have never programmed in proreal code and would appreciate very much to get tips how i start with this strategy and use this strategy to program a code and then backtest it. I would try to use it on Dax30.

    best regards

    jandah

    Skjermbilde.jpg Skjermbilde.jpg
    #133372 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go (not tested):

    FastMA = average[9,0](close)
    SlowMA = average[20,0](close)
    If FastMA crosses over  SlowMA and Not OnMarket then
       Buy 1 contract at Market
    ElsIf FastMA crosses under SlowMA and Not OnMarket then
       Sellshort 1 contract at Market
    Endif
    Set Target pProfit 100
    Set Stop   pLoss   50
    #133375 quote
    VonasiVonasi
    Moderator
    Master

    That is the sort of simple strategy that can easily be created using the strategy creation tool that is built in to the platform.

    #133383 quote
    jebus89jebus89
    Participant
    Master
    #134009 quote
    jandah772jandah772
    Participant
    New

    Thanks a lot.

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

Newbee to prorealcoding would appreciate tips


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
jandah772 @jandah772 Participant
Summary

This topic contains 4 replies,
has 4 voices, and was last updated by jandah772jandah772
6 years, 4 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/26/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...