point and figure programmazione

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #202073 quote
    Francesco RossiFrancesco Rossi
    Participant
    New

    Buongiorno,

    ho sviluppato un sistema di trading  basato sui grafici point&figure.

    E’ possibile ricevere assistenza per automatizzarlo su piattaforma PRT?

    grazie

    #202080 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Per il trading automatico si possono utilizzare solo grafici a tempo, con qualunque altro tipo (Point & Figure, Renko, ecc…)  non è possibile.

    #202247 quote
    Francesco RossiFrancesco Rossi
    Participant
    New

    a quanto pare qualcosa è possibile fare. C’è qualcuno che può aiutarmi a settare il codice di seguito riportato?

     

     

    https://www.prorealcode.com/prorealtime-trading-strategies/point-figure-charts-automated-trading-system/

    defparam cumulateorders = false
    ONCE uptrend = 1
    ONCE downtrend = 1
    n = 1
    Boxsize = 20
    turnafternn = 4
    LowerBorderBox = round((close / Boxsize) 0.5) * Boxsize
    ONCE DowntrendLow = LowerBorderBox
    ONCE UptrendHigh = LowerBorderBox
    If LowerBorderBox > LowerBorderBox[1] then
    If uptrend = 1 then
    downtrend= 0
    ONCE DowntrendLow = LowerBorderBox
      If LowerBorderBox > UptrendHigh then
       UptrendHigh = LowerBorderBox
      endif
    endif
    If downtrend = 1 and LowerBorderBox >= DowntrendLow + (turnafternn * Boxsize) then
      UptrendHigh = LowerBorderBox
      uptrend = 1
      downtrend = 0
    endif
    elsif LowerBorderBox < LowerBorderBox[1] then
      If downtrend = 1 then
      uptrend = 0
      ONCE UptrendHigh = LowerBorderBox
       If LowerBorderBox < DowntrendLow then
        DowntrendLow = LowerBorderBox
       endif
      endif
      If uptrend = 1 and LowerBorderBox <= UptrendHigh (turnafternn * Boxsize) then
       DowntrendLow = LowerBorderBox
       uptrend = 0
       downtrend = 1
      endif
    endif
    If uptrend = 1 and uptrend[1] = 0 then
    buy n contracts at market
    endif
    If downtrend = 1 and downtrend[1] = 0 then
    sellshort n contracts at market
    endif
    set stop ploss 350
Viewing 3 posts - 1 through 3 (of 3 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

point and figure programmazione


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Francesco RossiFrancesco Rossi
3 years, 11 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 10/07/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...