Porting Code from 10.3v to 11.1v

Forums ProRealTime English forum ProRealTime platform support Porting Code from 10.3v to 11.1v

Viewing 10 posts - 1 through 10 (of 10 total)
  • #151735

    Hi,

    I have started using version 11.1 (thanks to Ale mentioning to me) on IG Demo account. I am migrating my code from production 10.3v to demo account so that when 11.1 goes to live on IG, i shall be able to take advantage of it.

    I’ve been able to import all of my indicators without any issue.

    All indicators are working except one. The code is OK, there is no error, it works fine on 10.3 but somehow not showing results on 11.1 while same shows results on 10.3 on same time frame and instrument (stock/index).

    There is no error in the code. It saves and gets added without any syntax error. What could be the issue?

    #151736

    Difficult to know exactly why without the code.

    But try to embed your indicator’s code into a test about sufficient barindex. If your indicator is using periods, use the biggest one in the test:

     

    #151741

    Hi,

    I am using e.g.

     

    where highLen and lowLen are passed as input variables (e.g. highLen=5 and lowLen=5)

    I will try adding yours also.

    #151745

    I did like below:

     

     

     

    No errors but no results.

    #151759

    Please use the button to insert code into your message.

    The code is working ok for me, see attached picture.

    #151772

    Thanks Nicola for your quick responses. I will go to old (my rubbish) way of debugging the code i.e. add lines one by one and see the reaction.

    #151774

    Hi,

    I found the issue. I will highlight here as it would be useful to others.

     

    PRT 10.3v

    =======

    PRT 11

    =====

    So I did like this then

     

    #151775

    ignore

    #151871

    Sorry I don’t get it, in any case, this code:

    is a boolean expression and will return 0 (false) or 1 (true).

    #152950

    Yes that is a boolean expression but condition wasn’t getting true in v11 as shown in above example. So I modified code in v11 as stated above.

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

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