<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Portfolio Expert - Changing SL Values Post Export]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/8589/" />
	<updated>2020-10-19T16:48:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/8589/portfolio-expert-changing-sl-values-post-export/</id>
		<entry>
			<title type="html"><![CDATA[Re: Portfolio Expert - Changing SL Values Post Export]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/62694/#p62694" />
			<content type="html"><![CDATA[<p>Thank you again - I just created a test to see if it appears on both and it does, so thanks for your confirmation as well. The ability t change SL and TP on a global level in my test is a major step forwards in my testing.</p><p>I appreciate also the info on the build - </p><p>Cheers - have a great day!<br />Matthew</p>]]></content>
			<author>
				<name><![CDATA[Minch]]></name>
				<uri>https://forexsb.com/forum/user/11305/</uri>
			</author>
			<updated>2020-10-19T16:48:44Z</updated>
			<id>https://forexsb.com/forum/post/62694/#p62694</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Portfolio Expert - Changing SL Values Post Export]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/62693/#p62693" />
			<content type="html"><![CDATA[<p>yes on both..</p><p>here in code you can find how this function is build.</p><div class="codebox"><pre><code>Signal CreateEntrySignal(const int strategyIndex,const bool canOpenLong,const bool canOpenShort,const int stopLossPips,const int takeProfitPips, const bool isTrailingStop)</code></pre></div><br /><div class="codebox"><pre><code>Signal CreateExitSignal(const int strategyIndex,const bool canCloseLong,const bool canCloseShorts,const int stopLossPips,const int takeProfitPips, const bool isTrailingStop)</code></pre></div><p>i dont know why it is in both ..maybe popov can tell.. i also wish to have magicnumber as a variable as basic portfolio code</p>]]></content>
			<author>
				<name><![CDATA[Roughey]]></name>
				<uri>https://forexsb.com/forum/user/10939/</uri>
			</author>
			<updated>2020-10-19T16:17:38Z</updated>
			<id>https://forexsb.com/forum/post/62693/#p62693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Portfolio Expert - Changing SL Values Post Export]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/62690/#p62690" />
			<content type="html"><![CDATA[<p>Hi Roughey, </p><p>Thank you - that worked perfectly! <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> </p><p>I think I was changing the comment line only so no wonder it didnt work for me. I&#039;m trying to improve my awareness of the code so this really helps me to get a new handle on what is happening under the hood, thank you very much again. One additional question, if I may : I assigned a variable X to be the SL so I only need to change one value when I want to change all 100 strategies, i.e. </p><p>Signal signal = CreateEntrySignal(0, ind0long &amp;&amp; ind1long &amp;&amp; ind2long, ind0short &amp;&amp; ind1short &amp;&amp; ind2short, X, 0, false);</p><p>This seem to work OK, but I also noticed that there is the CreateExitSIgnal - do I need to match the SL value in there as well since there seem to be the same two values?</p><p>i.e. </p><p>Signal signal = CreateEntrySignal(75, ind0long &amp;&amp; ind1long &amp;&amp; ind2long, ind0short &amp;&amp; ind1short &amp;&amp; ind2short, X, 0, false);<br />Signal signal = CreateExitSignal(75, ind3long || ind4long, ind3short || ind4short, X, 0, false);</p><p>Thanks for your help -</p>]]></content>
			<author>
				<name><![CDATA[Minch]]></name>
				<uri>https://forexsb.com/forum/user/11305/</uri>
			</author>
			<updated>2020-10-19T14:10:49Z</updated>
			<id>https://forexsb.com/forum/post/62690/#p62690</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Portfolio Expert - Changing SL Values Post Export]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/62686/#p62686" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Signal signal = CreateEntrySignal(0      , ind0long &amp;&amp; ind1long &amp;&amp; ind2long, ind0short &amp;&amp; ind1short &amp;&amp; ind2short, 33, 24, false); return (signal); }</code></pre></div><p>Change IT here in each Signal. The 33 and 24 are sl TP</p>]]></content>
			<author>
				<name><![CDATA[Roughey]]></name>
				<uri>https://forexsb.com/forum/user/10939/</uri>
			</author>
			<updated>2020-10-19T09:13:17Z</updated>
			<id>https://forexsb.com/forum/post/62686/#p62686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Portfolio Expert - Changing SL Values Post Export]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/62678/#p62678" />
			<content type="html"><![CDATA[<p>File attached</p>]]></content>
			<author>
				<name><![CDATA[Minch]]></name>
				<uri>https://forexsb.com/forum/user/11305/</uri>
			</author>
			<updated>2020-10-19T01:28:34Z</updated>
			<id>https://forexsb.com/forum/post/62678/#p62678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Portfolio Expert - Changing SL Values Post Export]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/62677/#p62677" />
			<content type="html"><![CDATA[<p>File attached</p>]]></content>
			<author>
				<name><![CDATA[Minch]]></name>
				<uri>https://forexsb.com/forum/user/11305/</uri>
			</author>
			<updated>2020-10-19T01:27:32Z</updated>
			<id>https://forexsb.com/forum/post/62677/#p62677</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Portfolio Expert - Changing SL Values Post Export]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/62676/#p62676" />
			<content type="html"><![CDATA[<p>I would like to ask some assistance with the following, please. </p><p>I created 100 strategies and compiled these into a single portfolio. I thought that the strategies all had a SL of 100 but when I ran the portfolio in MT4 Backtester, I had gaps in the SL column (see attached). I now need to check back and amend each of the strategies so that they have a SL of 100. I tried to do this in the EA Studio but the editor is clunky and each time an amendment is made, a new strategy seems to be created and I end up with duplicates, it&#039;s very confusing. I thought it would be easier to just change the code, so I opened the editor in MT4 and there are indeed some lines that say : useStopLoss&quot;:false</p><p>/*STRATEGY CODE {&quot;properties&quot;:{&quot;entryLots&quot;:0.01,&quot;stopLoss&quot;:100,&quot;takeProfit&quot;:100,&quot;useStopLoss&quot;:false,&quot;useTakeProfit&quot;:false,&quot;isTrailingStop&quot;:false}</p><p>I changed all these lines from false to true and recompiled it and reran the back test. Unfortunately, there is no change - I am getting exactly the same results and there are still the same trades created with no SL. </p><p>Is there something else in the code I should be changing, please? </p><p>I have attached the original export file and the one where I changed the values. Thank you.</p>]]></content>
			<author>
				<name><![CDATA[Minch]]></name>
				<uri>https://forexsb.com/forum/user/11305/</uri>
			</author>
			<updated>2020-10-19T01:26:11Z</updated>
			<id>https://forexsb.com/forum/post/62676/#p62676</id>
		</entry>
</feed>
