Combine manual trading with algo
Forums › ProRealTime English forum › ProOrder support › Combine manual trading with algo
- This topic has 5 replies, 4 voices, and was last updated 8 months ago by
PeterSt.
-
-
12/10/2024 at 1:17 PM #241310
Hello everyone!
Since I am very bad at keeping my plan when I trade manually, I would like to have an algo that helps me with that.Example: When I see a good setup. I want to go long and I know my Stop and Target. I write down my stoploss and target in my algon. And the algo does the rest.
After I type SL=40p/TP=80p and startded the algo I want it to take 4 contracts.
When it has 20p profit from entry, it should close 1 contract. My profit will be 20p/4contracts=5. Then my new SL will be 45p.
f the price goes in my favor to 40p, it will close 1 more contract. My profit will then be 20p/3 contracts=6.66p
Then my new SL = 51.6 From entry. and so on until the price reaches my SL or TP.It would help me a lot.
12/11/2024 at 12:03 PM #241327Hello, here is a possible solution.
Once you want to enter the market then you can start the system. The best thing to do is to do it at a low timeframe so that it starts as soon as possible.1234567891011121314151617181920212223242526272829303132333435363738defparam cumulateorders=falseonce check=1if not onmarket and check=1 thenbuy 4 contracts at marketset stop ploss 40set target pprofit 80endifif onmarket and not onmarket[1] thencheck=0buyprice=tradepricenewsl=buyprice-40*pipsizetp1=buyprice+20*pipsizetp2=buyprice+40*pipsizetp3=buyprice+80*pipsizefirstlevel=0secondlevel=0endifif onmarket and close > tp1 and firstlevel=0 thenfirstlevel=1sell 1 contract at marketset stop ploss 45newsl=buyprice-45*pipsizeendifif onmarket and close>tp2 and secondlevel=0 thensecondlevel=1sell 1 contract at marketset stop ploss 51.6newsl=buyprice-51.6*pipsizeendif//graphonprice newsl coloured("red")//graphonprice tp1 coloured("blue")//graphonprice tp2 coloured("green")//graphonprice tp3 coloured("orange")1 user thanked author for this post.
12/16/2024 at 2:42 PM #24146302/17/2025 at 2:56 PM #24394702/17/2025 at 5:22 PM #24395003/02/2025 at 2:01 PM #244537 -
AuthorPosts
Find exclusive trading pro-tools on 