Month to Date (MTD)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #196022 quote
    MacroT
    Participant
    Average

    Hi,

    Within PRT is there any defined variable for MTD performance of any instrument? If not what would be the code to obtain this on any given day for a trading script (prorealcode) ?

     

    Thanks

    #196029 quote
    JS
    Participant
    Senior
    x = date
    y = round((x / 100) - 0.5)
    z = y * 100
    d = x - z
    
    Return d
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Month to Date (MTD)


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
MacroT @macrot Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JS
3 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/24/2022
Status: Active
Attachments: No files
Logo Logo
Loading...