Month to Date (MTD)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #196022 quote
    MacroTMacroT
    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
    JSJS
    Participant
    Master
    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.
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

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 JSJS
4 years, 3 months ago.

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