<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — Filter Your Strategy Collections by Stop Loss (Free Script)]]></title>
		<link>https://forexsb.com/forum/topic/9878/filter-your-strategy-collections-by-stop-loss-free-script/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/9878/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Filter Your Strategy Collections by Stop Loss (Free Script).]]></description>
		<lastBuildDate>Fri, 08 Nov 2024 20:09:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Filter Your Strategy Collections by Stop Loss (Free Script)]]></title>
			<link>https://forexsb.com/forum/post/81781/#p81781</link>
			<description><![CDATA[<p>Thanks for the kind words guys, I appreciate it and am happy if my contributions are helpful.</p><p>Thanks for your contribution as well. It might make sense if you post it in a separate thread, so that it gets noticed.</p><p>Cheers from Germany! :-)</p>]]></description>
			<author><![CDATA[null@example.com (geektrader)]]></author>
			<pubDate>Fri, 08 Nov 2024 20:09:34 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/81781/#p81781</guid>
		</item>
		<item>
			<title><![CDATA[Re: Filter Your Strategy Collections by Stop Loss (Free Script)]]></title>
			<link>https://forexsb.com/forum/post/81780/#p81780</link>
			<description><![CDATA[<p>@Geek Those metrics are very important for any serious trader. I hope someday we have it as acceptance criteria and at the collection filter max/min:<br /></p><ul><li><p>Avg. loss trade</p></li><li><p>Avg. profit trade</p></li></ul><p>Below is the MT5 snippet I use as &quot;custom optimization metric&quot; in MT5 optimization, here is my contribution to the community:<br /></p><div class="codebox"><pre><code>   double avg_win = TesterStatistics(STAT_GROSS_PROFIT) / TesterStatistics(STAT_PROFIT_TRADES);
   double avg_loss = -TesterStatistics(STAT_GROSS_LOSS) / TesterStatistics(STAT_LOSS_TRADES);</code></pre></div><p>Using both of those metrics you can create a the metric &quot;RRR&quot; return risk ratio:<br /></p><div class="codebox"><pre><code>double return_risk_ratio = avg_win/avg_loss; // RRR</code></pre></div><p>RRR higher than 1 ( &gt;=1 ) means your system has more profit than losses in the long run and I love this metric! </p><p>@Geek glad to see along those years you still continue providing great insights for the community!<br />Hope you the best trades and Thank you <img src="https://forexsb.com/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" />!&nbsp; Cheers from Brazil</p>]]></description>
			<author><![CDATA[null@example.com (ViniQ)]]></author>
			<pubDate>Fri, 08 Nov 2024 15:33:04 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/81780/#p81780</guid>
		</item>
		<item>
			<title><![CDATA[Re: Filter Your Strategy Collections by Stop Loss (Free Script)]]></title>
			<link>https://forexsb.com/forum/post/81777/#p81777</link>
			<description><![CDATA[<p>Good</p>]]></description>
			<author><![CDATA[null@example.com (gabdecsters)]]></author>
			<pubDate>Fri, 08 Nov 2024 10:46:48 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/81777/#p81777</guid>
		</item>
		<item>
			<title><![CDATA[Re: Filter Your Strategy Collections by Stop Loss (Free Script)]]></title>
			<link>https://forexsb.com/forum/post/81730/#p81730</link>
			<description><![CDATA[<p>PowerShell version:</p>]]></description>
			<author><![CDATA[null@example.com (geektrader)]]></author>
			<pubDate>Thu, 07 Nov 2024 08:48:24 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/81730/#p81730</guid>
		</item>
		<item>
			<title><![CDATA[Filter Your Strategy Collections by Stop Loss (Free Script)]]></title>
			<link>https://forexsb.com/forum/post/81729/#p81729</link>
			<description><![CDATA[<p>Hi fellow traders!</p><p>Because this is currently not possible in EA Studio, I&#039;ve created a simple Python/PowerShell script that automatically filters your strategy collections based on the maximum stop loss you want.</p><p>Here&#039;s what it does:<br />- Processes all JSON strategy collections in your current directory<br />- Creates new filtered versions with &quot;-SL-XX-Pips&quot; in the filename<br />- Keeps only strategies with stop losses below your specified maximum<br />- Shows you exactly how many strategies were filtered out<br />- Super fast and reliable (I use it myself all the time)</p><p>Using it is super simple:<br />1. Download the script (attached below)<br />2. Open it in any text editor<br />3. Change the MAX_STOP_LOSS value at the top (default is 65 pips)<br />4. Put the script in the folder with your JSON strategy files<br />5. Run it with Python</p><p>For example, if you want to keep only strategies with stop losses up to 50 pips, just change this line at the top:</p><p>Python: </p><div class="codebox"><pre><code>MAX_STOP_LOSS = 50  # Change this to whatever you want</code></pre></div><p>PowerShell: </p><div class="codebox"><pre><code>[double]$MAX_STOP_LOSS = 50</code></pre></div><p>The script will create new files with names like &quot;MyStrategies-SL-50-Pips.json&quot; containing only the strategies that meet your criteria. The original files stay untouched.</p><p>Hope this helps some of you streamline your strategy management! Let me know if you have any questions or suggestions for improvements.</p><p>Happy trading!</p><p>Cheers,</p><p>Lorenz</p><br /><p>Python version:</p>]]></description>
			<author><![CDATA[null@example.com (geektrader)]]></author>
			<pubDate>Thu, 07 Nov 2024 08:27:41 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/81729/#p81729</guid>
		</item>
	</channel>
</rss>
