It's all good, but I am a dummy, I am trying to write an EA in the extent of my knowledge (I just learned a bit), I understand that the variable is a structure, but how to get data out of this structure is not clear. For example, if we have found the furthest order, then profit should be divided by lot and we get the number of points from the current price to that lot. Then we get the profit of an opposite order (I know how to get it), divide it by the number of points of the opposite order calculated earlier, we get the number of lots and use this number of lots to fully or partially close the far order found.
I would also like to ask if it is possible to find the furthest order from the price by comparing opening prices of orders in the cycle, I think it would be even easier?
I would also like to ask if it is possible to find the furthest order from the price by comparing opening prices of orders in the cycle, I think it would be even easier?
Of course it is. And whether it is easier or not depends on what you need. This is an example to your question above.
Of course you can. Whether it is easier or not depends on what you need. And an example to your question above.
Looking at all this, I realize what a tipster I am. So, theresult ofvoid OldSell(void)function is written toInfoOrder structure, and then you can use values of infoOrder.ticket,infoOrder.profit,infoOrder.lot variables.
Николай: Looking at all this, I realize what a dummy I am. So, theresult ofvoid OldSell(void)function is written toInfoOrder structure and then we can use infoOrder.ticket,infoOrder.profit,infoOrder.lot.I generalized the function a bit, was it right or not?
Good afternoon! Maybe someone would be interested in automating my strategy. It's working now, but in semi-automatic mode, I'd like to automate it.
Can I see the trading results?
Good evening, could you please advise how to get a ticket order, lot and profit from one function:
double OldTicketSell()// Find the furthest sell order
}
The function is clear, it's not clear how to get the found data out of it, or it's necessary to copy it under lot and profit.
Good evening, could you please tell me how to get ticket orders, lot and profit from one function.
The function is understandable, it's not clear how to pull the found data from it, or should I copy it under lot and profit.
We could do it like this
You can go like this
We could do it like this
I would also like to ask if it is possible to find the furthest order from the price by comparing opening prices of orders in the cycle, I think it would be even easier?
I would also like to ask if it is possible to find the furthest order from the price by comparing opening prices of orders in the cycle, I think it would be even easier?
Of course it is. And whether it is easier or not depends on what you need.
This is an example to your question above.
Of course you can. Whether it is easier or not depends on what you need.
And an example to your question above.
Of course you can. Whether it's easier or not depends on what you need.
And an example to your question above.
Looking at all this, I realize what a dummy I am. So, theresult ofvoid OldSell(void)function is written toInfoOrder structure and then we can use infoOrder.ticket,infoOrder.profit,infoOrder.lot.I generalized the function a bit, was it right or not?
Something like this.
found this structure in the EA, can you tell me what it defines