osMA (Moving Average of Oscillator), conversion code mt4 to prorealtime

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

    I would be interested in osMA (Moving Average of Oscillator) conversion code mt4 to prorealtime.

    Thank you for any input.

     

    #69930 quote
    robertogozzi
    Moderator
    Master
    You should follow these few steps and rules https://www.prorealcode.com/topic/free-conversion-mt4-indicators-mql4/.
    #69948 quote
    Nicolas
    Keymaster
    Master
    Just found this simple code on the web, about OSMA for PROREALTIME:
    fastMA = exponentialAverage[12](close)
    slowMA = exponentialAverage[26](close)
    myMACD = fastMA - slowMA
    line = Average[9](myMACD)
    osc = myMACD - line
    Return osc As "Osc" ,0 As "Null"
    mecon thanked this post
    #69951 quote
    mecon
    Participant
    New
    Dear Nicolas Thank you for this code. When I enter it into ProBuilder, line 4 (“line = Average[9](myMACD)“) and 5 (“osc = myMACD – line”) get an exclamation mark, and an error window “syntax-error” (see screenshot), so I am stuck. Would you have any idea why that is?
    #69958 quote
    robertogozzi
    Moderator
    Master
    Since ProBuilder makes LINE coloured it must be a reserved word (which I am not aware of), try replacing Line with MyLine.
    mecon thanked this post
    #69961 quote
    mecon
    Participant
    New
    Dear Robert Thank you, this “MyLine”-renaming did the trick!
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

osMA (Moving Average of Oscillator), conversion code mt4 to prorealtime


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
mecon @mecon Participant
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by mecon
7 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/07/2018
Status: Active
Attachments: 2 files
Logo Logo
Loading...