Nomenclature of the trading asset.
-
In the market I trade, there is an asset expiry.
For example:Asset Name: Bra50
Month April: Bra50Apr22So every month the ending (Apr22) will be changed to the month name and expiry year. For example: (May22)
Is there any way to automate this so that the EA identifies the name of the current trading asset for the current month?
-
@ontradingx You need to do this:

-
@l-andorrà can you give me more details why Bra?=0.001 ?
-
? means it assumes other letters or numbers exist. for the ? so long as the symbol starts with BRA, it will trade it.
-

But there is also the Bra50.
So for example we have:
The CFD asset (Bra50)
And we have the asset (Bra50Apr22)
In this case he will open 2 trades, 1 in each?For example, in the Brazilian market we have an asset called WIN$N, in the backtest market we can open trades but in the real market we cannot, so we use the monthly WINJ22, how could I do it in this case?

-
@ontradingx said in Nomenclature of the trading asset.:

But there is also the Bra50.
So for example we have:
The CFD asset (Bra50)
And we have the asset (Bra50Apr22)
In this case he will open 2 trades, 1 in each?For example, in the Brazilian market we have an asset called WIN$N, in the backtest market we can open trades but in the real market we cannot, so we use the monthly WINJ22, how could I do it in this case?

theoretically.
-
@ontradingx Exactly. You will need to use two different entries. One will be Bra50 = 0.001 and the other one Bra50? = 0.001, for example.