Bitcoin Forum

Economy => Trading Discussion => Topic started by: forestx on January 08, 2024, 01:39:25 PM



Title: MT4 and automation trading with multi tp
Post by: forestx on January 08, 2024, 01:39:25 PM
I am looking at ways to automate my mt4 trading. I have a strategy that when back tested on TV is working. It is built on pine script and uses the atr to set a stop loss and first take profit. When first tp is  hit it removes 50% of my position resets the sl at entry and then exists at atr cross.

This is all coded in pinescript but uncertain if it can be utilised easily on MT4. I have a demo account and the brooker allows capitalise ai which I plan to use but is this possible can I set multi tp and trailing stop losses or what is the best way to deal with it   


Title: Re: MT4 and automation trading with multi tp
Post by: Lakai01 on January 08, 2024, 02:36:53 PM
[...]
This is all coded in pinescript but uncertain if it can be utilised easily on MT4. I have a demo account and the brooker allows capitalise ai which I plan to use but is this possible can I set multi tp and trailing stop losses or what is the best way to deal with it   
I'm afraid you'll have to translate your Pinescript into MQL4 by hand. I am not aware of any script/tool that can automatically convert Pinescript code to MQL. But if you have written the Pinescript code yourself, this should not be a problem technically, the MQL documentation is very good and you can also find lots of examples on Stackoverflow and co: MQL4 Reference (https://www.mql4.com/en)


Title: Re: MT4 and automation trading with multi tp
Post by: forestx on January 08, 2024, 02:43:14 PM
While there is no tools to covert pine script to MQL there are tools to link TV alerts to MT4 including Capitalise AI which I intent to test first. I am just trying to figure out if it will actually work and do what I want and if people have experiences with it or other tools