I want EA Tsukurūru to process both buy and sell positions in the payment workflow!
Hello. This is Chobitto FX.
Well, as the title suggests,EA Creatorthe close processing of the EAs you work hard to create with EA Creator ends up being specified as either "buy close" or "sell close".
The closing process is a method that you want to have handle both buy and sell positions.
EA Creatorcontains a closePosition function in the source code you create.
closePosition(Magic1, OP_BUY);
The second argument "OP_BUY
closePosition(Magic1);
Easy, isn't it?
If you want to process without regard to the magic number, like this.
// Get the size of the array
int arraySize = ArraySize(magic_array);
// Loop as many times as there are elements in the array
for(int i = 0; i < arraySize; i++) {
int magicNumber = magic_array[i];
// Call the closePosition function here
closePosition(magicNumber);
}
EA Creatorstores position information in the array magic_array, so you can use the array magic_array to perform the looping process.
What do you think?
It’s perfect for closing manual positions in bulk!
Here is an article about having EA process manual positions too → “I want the created EA to process manual positions as well!”
However,EA Creatorthe source code output from EA Creator clearly emphasizes readability and versatility.
Engineer, you’re amazing.
*Please use at your own discretion.