Variable position size on end of day account

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #75272 quote
    VonasiVonasi
    Moderator
    Master

    I’m just testing out the new MTF on my new end of day free trial version of PRT and I have a calculation in my code to give a variable size of position to open. The code still only opens a position size of 1 even though if I graph the variable positionsize it shows that it is calculating correctly.

    Is it not possible to have a variable position size in the end of day version or am I missing some coding trick that is not needed in my IG – PRT platform?

    totrsi = (rsi1 + rsi2 + rsi3 + rsi4)/4
    
    positionsize = round((1 + ((100 - totrsi)/100))*100)/100
    
    if not onmarket and (my conditions) then
    buy positionsize * pipsize contracts at market
    endif
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

Variable position size on end of day account


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Vonasi @vonasi Moderator
Summary

This topic contains 1 voice and has 0 replies.

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