Other problem - must be know

Code

function run()
{

    asset("EUR/USD");
    AssetVar[0]=33.99;
    printf("\n%s = %f",Asset,AssetVar[0]);
    AssetFloat[0]=1234.56;
    printf("\n%s = %f",Asset,AssetVar[0]);
    quit("ok!");
}



have this output:
Code

testIN compiling...........
EUR/USD = 33.990002
EUR/USD = 33.989998
Test: testIN EUR/USD 2016..2021
Assets Assets4

ok!



This is correct - from manual:
32 general purpose int or float variables for internally storing integers or floats specific to the current asset. They are shared with AssetVar/AssetStr at twice the index, i.e. AssetVar[N] is shared with AssetInt[2*N] and AssetInt[2*N+1]. They cannot be read from the asset list. AssetInt can also be used to store asset-specific series or pointers for using them in a tmf or tick function.

Last edited by Grat; 05/08/21 09:53.