Addforeign function properly made must be able to draw an instrument which is different from the main loaded chart instrument. Now it is, before it was not, why? Decimals. And you would think its an easy one but you`re wrong because this one required a lot of modifications, for example now the plot functions, the legal plot functions have one more parameter. Decimals parameter which is not mandatory but when specified it alters the default number of decimals which is proprietary to each instrument. And from this modifications a lot more required as this had impact on almost all functions that draw the chart. Luckily, this version is one that was properly made (more or less) and the modifications fall in to place everywhere without disturbing or messing anything. Now, if have not made any mistake it should properly work everywhere. And from this one moving forward and related is the Yaxis which is the only thing left to properly do so it works with the new feature, that would be the decimals parameter. Of course I have not even checked yet the other plots but hopefully, as I said, I made no mistake. The Yaxis works as it can be seen in the image however there are two buttons that do not work fine anymore (for some reason I can`t figure it right now) the +dec and -dec buttons. These buttons also modified the decimals but only for the ax itself, somewhere there the code does not correctly deal with the new feature, should not be big deal though.   

    Other than that, I modified the code to full speed and works amazing. The entire chart I mean, its fast, handy feels good and manoeuvres fine. Its 100% a working platform, I could work with something like this in the markets, feels just right. Not sloppy not freezing runs smooth and nice

    And yes, I forgot to mention not only the legal plotOHLC function needed to be modified but also the oother legal plots like plottext and plotfill. Plots...generally speaking are easy to make unlike these legal plots functions which were a bit more complicated but now my plots are ready. so nice, everything works fine

Comments