Calling indicator

Forums ProRealTime English forum ProOrder support Calling indicator

Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • #102207

    I’m need help how the code is for calling values from an indicator. The indicator is made by Thomas on this forum(thanks for sharing!) and i want to use the return of mytdaylow, mytdayhigh and mytdaycenter in my trading system but I don’t understand how too call it.

     

    #102210

    The syntax for CALL is:

     

    where myvalue are the returned values and parameter is the variables required by the indicator (so for example a period or setting).

    So for your indicator replace myValue1 etc with your returned names and replace parameters with any that your indicator needs.

    If a value is not used in your strategy then just replace its name with ‘ignored’.

     

     

    1 user thanked author for this post.
    #102211

    Tnx, and what parameter do I use?

    Here is the whole code from the indicator that i use by Thomas

     

    #102213

    If there are any parameters that you have to set or can modify in the indicator window after it is applied to a chart then these are the parameters.

    #102214

    I want the closing price (close) for each (day high, day low and day center) (5min) is that what I should put as a parameter or how do I write too get it?

    #102220

    I found some time to try to get CALL to work with that indicator but I couldn’t. There are no parameters needed but even if I created one by // out the lookback = 1 and creating lookback as a changeable parameter it still gives an error message.

    The following strategy should just call the indicator (named MyIndicator(13) in my case) and draw the same lines on the chart but it gives the attached error.

    I tested the same on a different indicator and it worked just fine so there is something about this indicator that it does not like.

    You could just hard code the indicator into your strategy rather than use CALL while we all work out what is wrong.

    #102222

    From a quick scan through of the code it seems that the values that you want are just the daily high and daily low and a mid point between them which you can simply get by adding the following to your strategy:

     

    #102238

    Ok, I get the same error message when I run the program. It should work if we identify the problem. Thanks for the help and we keep in touch if we find a solotion.

    #102246

    Just add (Close) at the end of the CALL instruction and it should work.

     

    1 user thanked author for this post.
    #102251

    So the correct format is (change indicator name to whatever you have it named as):

    This deals with the required customclose that the indicator needs. I’ve had this issue before (this time I was putting the close in the [ ] which is why I could not get it to work!)  Maybe the documentation for CALL needs a little update to cover this issue?

    1 user thanked author for this post.
    #102252

    I modified the CALL documentation.

    2 users thanked author for this post.
    #102573

    Hi

    I am on vacation and I will take a look at this when I am back. Superthanks for the help so far!!

Viewing 12 posts - 1 through 12 (of 12 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login