Conversion of Imirror from MT4 to ProRealTime

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #206863 quote
    gadetrading
    Participant
    New

    Hello.

    I have found an MT4 indicator that mirrors the chart. It will flip the chart. For example, if the market is uptrending it will then be downtrending and vice versa. It creates a mirror image within the chart. This allows me to train my ability to look at downtrending markets, as I struggle with this. Preferably, I would like the color of the bars to be grey when it is a negative bar and white when it is a positive bar. I will then hide the original bars from the chart.

    Any help converting this is greatly appreciated.

    #206865 quote
    gadetrading
    Participant
    New

    I did not figure out how to attach multiple files, so I will attach an image in this reply.

    #206876 quote
    JS
    Participant
    Senior
    #206914 quote
    gadetrading
    Participant
    New

    Thank you @JS

    I found the “TAC Invert Price” indicator in the post you linked to. That is what I was looking for.

    Have a good weekend, Andreas

    JS thanked this post
    #206921 quote
    gadetrading
    Participant
    New

    Hello @JS
    I was wondering if it is possible to also make it display all tails on bars?

    //invert=1
    If Invert=1 then
    If close>= open then
    DRAWCANDLE(-open, -high, -low, -close) coloured(153,153,153,255)
    else
    DRAWCANDLE(-open, -high, -low, -close) coloured(255,255,255,255)
    endif
    endif
     
    If Invert=0 then
    If close>= open then
    DRAWCANDLE(open, high, low, close) coloured(153,153,153,255)
    else
    DRAWCANDLE(open, high, low, close) coloured(255,255,255,255)
    endif
    endif
     
    return
    
    #206928 quote
    JS
    Participant
    Senior

    Hi @gadetrading

    Hereby the mirrored candles with “tails”…

    If Invert=1 then
    xOpen = -1 * Open
    xHigh = -1 * Low
    xLow = -1 * High
    xClose = -1 * Close
    
    If close>= open then
    DRAWCANDLE(xOpen, xHigh, xLow, xClose) coloured(0,150,0,255)
    else
    DRAWCANDLE(xOpen, xHigh, xLow, xClose) coloured(150,0,0,255)
    endif
    endif
    
    If Invert=0 then
    If close>= open then
    DRAWCANDLE(open, high, low, close) coloured(0,150,0,255)
    else
    DRAWCANDLE(open, high, low, close) coloured(150,0,0,255)
    endif
    endif
    
    return
    
    gadetrading thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Conversion of Imirror from MT4 to ProRealTime


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by JS
3 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/06/2023
Status: Active
Attachments: 4 files
Logo Logo
Loading...