From the new: one position can be opened on each current ray "AB" or "BC". That is, while the beam is current and the pending order has already worked on it, a new pending order on this current ray is not displayed.
"Current beam" -
Now added a trailing:
We will consider the branch 1.xxx finished - the code Last ZZ50 is placed.
All subsequent improvements will go already under the indices 2.xxx
I'm wondering how to code a kind of MACD divergence like the below picture shows.
This bearish MACD divergence is confirmed only when the first lower high is generated after a higher high and the macd value of each price between higher high and lower high must keep larger or equal 0 value.
Check the codebase.
EDIT: and please don't double post, I removed your other topic.
In the service "Freelance" a new section appeared: " Consultation "
I have checked those code base you posted but I still can't find or understand any idea for my question about divergence...
Sorry can you explain more for me?
bearish MACD divergence is confirmed only when the first lower high is generated after a higher high, and the macd value of each price between higher high and lower high must keep larger or equal 0 value.
The link I provided is an indicator coding these MACD divergences (bearish, bullish, "normal" and "hidden"). You have to understand the code and modify it to your needs if necessary.
If you don't understand the code I can't help sorry.
Your trailing profit works well. Thanks.