STORE EXTRA DATA with "Foreign" Function.

#1
Hello everyone, I have a problem with Amibroker about the possibility to store extra data using the foreign function, in fact as in the example:
myVal = Foreign (Name () + "_ Extra", "C");
i call AAPL_extra data when I view the ticker AAPL. But this way seems to work only for the data corresponding to Close, but if I do:
myVal = Foreign (Name () + "_ Extra", "O") do not match the data stored in the array Open. Could someone explain to me how to do?
 

mastermind007

Well-Known Member
#2
Hello everyone, I have a problem with Amibroker about the possibility to store extra data using the foreign function, in fact as in the example:
myVal = Foreign (Name () + "_ Extra", "C");
i call AAPL_extra data when I view the ticker AAPL. But this way seems to work only for the data corresponding to Close, but if I do:
myVal = Foreign (Name () + "_ Extra", "O") do not match the data stored in the array Open. Could someone explain to me how to do?
I've normally used NoteGet and NoteSet functions for such requirements.

If you want to use Foreign function, try with fixup value of 2.
 

mastermind007

Well-Known Member
#4
thanks for the quick reply,; what are the advantages using NoteGet and NoteSet?
NoteGet and NoteSet makes you the king of the jungle and you can therefore fly by day too. No need to wait for night to fall on you.
 

Similar threads