Selling at a STD in a downtrend
Forums › ProRealTime English forum › ProOrder support › Selling at a STD in a downtrend
- This topic has 3 replies, 3 voices, and was last updated 4 years ago by
nonetheless.
Viewing 4 posts - 1 through 4 (of 4 total)
-
-
08/21/2021 at 8:11 AM #175830
Hello guys,
I used to code the ProScreener only and this is my first try to code the ProBuilder.
A very simple idea: I want to sell a stock if it is in a downtrend and touches the SMA20+3*STD. The stop loss should be SMA20+4*STD and the take profit is the SMA20.
Seems to be simple but I have problems with the syntax and would be very thankful for any help.123456789101112entry=average[20](close)+3*std[20](close)stoploss=average[20](close)+4*std[20](close)takeprofit=average[20](close)downtrend=close<average[50](close) and average[50](close)<average[200](close)if downtrend thenif high>entry thensell 100 shares at marketset stop loss stoplossset target profit takeprofitendifendif08/21/2021 at 8:54 AM #17583208/21/2021 at 9:22 AM #17583608/21/2021 at 10:12 AM #175837it should automatically deliver a report, but if not then left click on “ProBacktest – Equity curve:” and select Detailed Report
you can customise the report for what details you want to see.
1 user thanked author for this post.
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
Find exclusive trading pro-tools on
Similar topics: