convert trading view to mql5

 
I have a TradingView script for a custom indicator and I want to use it in MetaTrader 5. Since the languages are different, can someone help convert or rewrite this indicator script to MQL5 for me?
 
darun Tahmaseb:
I have a TradingView script for a custom indicator and I want to use it in MetaTrader 5. Since the languages are different, can someone help convert or rewrite this indicator script to MQL5 for me?

The integrated AI Assistant in MT5 (MQL5 Lite) is rather good at rewriting Pine into MQL5. Just copy and paste the Pine script to the AI Assistant and tell it to do so.

If you're not good with AI, then just post the Pine script here. I've done this before.

 
Yes, but treat it as a behavioral rewrite rather than a line-by-line translation.

Before anyone quotes or codes it, freeze:

1. Pine version and whether the source is an indicator or strategy.
2. Every request.security() call, lookahead/gaps setting, and whether signals use confirmed bars only.
3. The MT5 output contract: indicator buffers/objects and alerts only, or EA/order logic as a separate scope.
4. Three positive and three negative chart examples with symbol, timeframe, session/time zone and exact bar times.
5. Reload/restart parity: the same closed bars must keep the same signal after both platforms reload.

A good first milestone is one signal and one plot/buffer mapped on the same historical bars, followed by compile, reload and developing-bar tests. That catches time-zone, indexing and repaint drift before a full rewrite. Complete buyer-owned or otherwise authorized Pine source is required; a protected/invite-only script should not be reconstructed from appearance alone.

If you want paid implementation, the MQL5 Freelance order should include those fixtures and define source delivery plus acceptance cases.

AI disclosure: the technical checklist above is Arnold Holm's MQL/Pine conversion workflow; the wording was drafted with AI assistance and reviewed by Arnold.