Hello, a stock has three different maturities: January 31, February 28 and March 31.
"January 31 2023" symbol = "F_AKBNK0123"
" February28 2023" symbol = "F_AKBNK0223"
" March 31 2023" symbol = "F_AKBNK0323"
I want to do : Get bid price F_AKBNK0123 and Get ask priceF_AKBNK0323 if the two prices are equal, sell 1 F_AKBNK0123 and buy 1 F_AKBNK0323.
How can I do that? I used the example below to try it, it brings the price of that symbol to whichever symbol I throw, but it does not bring the price of the other symbol. Thanks for your help.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello, a stock has three different maturities: January 31, February 28 and March 31.
"January 31 2023" symbol = "F_AKBNK0123"
" February 28 2023" symbol = "F_AKBNK0223"
" March 31 2023" symbol = "F_AKBNK0323"
I want to do : Get bid price F_AKBNK0123 and Get ask price F_AKBNK0323 if the two prices are equal, sell 1 F_AKBNK0123 and buy 1 F_AKBNK0323.
How can I do that? I used the example below to try it, it brings the price of that symbol to whichever symbol I throw, but it does not bring the price of the other symbol. Thanks for your help.