<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — static input Entry_Amount & Max_Open_Positions]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9642" />
	<updated>2024-01-13T08:13:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9642/static-input-entryamount-maxopenpositions/</id>
		<entry>
			<title type="html"><![CDATA[Re: static input Entry_Amount & Max_Open_Positions]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/78286/#p78286" />
			<content type="html"><![CDATA[<p>You can easily enable the Entry Amount for optimization.</p><p>Please open the expert cod in the editor.&nbsp; The <strong>Entry_Amount</strong> variable is at the top of the code.</p><p><a href="https://image-holder.forexsb.com/store/make-entry-amount-optimisable.png"><span class="postimg"><img src="https://image-holder.forexsb.com/store/make-entry-amount-optimisable-thumb.png" alt="https://image-holder.forexsb.com/store/make-entry-amount-optimisable-thumb.png" /></span></a></p><p>It is marketed as &quot;static&quot;. Please remove the &quot;static&quot; descriptor, and you will be able to optimize the Entry amount.</p><p>The code should look like this:</p><div class="codebox"><pre><code>static input string _Properties_ = &quot;------&quot;; // --- Expert Properties ---
static input int    Magic_Number = 365481517; // Magic number
       input double Entry_Amount =     0.19; // Entry lots
       input int    Stop_Loss    =     5000; // Stop Loss   (pips)
       input int    Take_Profit  =     7000; // Take Profit (pips)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Popov]]></name>
				<uri>https://forexsb.com/forum/user/2/</uri>
			</author>
			<updated>2024-01-13T08:13:29Z</updated>
			<id>https://forexsb.com/forum/post/78286/#p78286</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[static input Entry_Amount & Max_Open_Positions]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/78281/#p78281" />
			<content type="html"><![CDATA[<p>I hope this message finds you well.</p><p>I am currently utilizing an Expert Advisor (EA) that you have developed, and I have encountered a challenge that I believe you could assist me with. The issue pertains to the optimization of the Entry_Amount variable within the MetaTrader 5 Strategy Tester.</p><p>The EA operates effectively, and I am impressed with its performance. However, I have noticed that the Entry_Amount parameter is not selectable for optimization in the Strategy Tester. This limitation hinders my ability to fully optimize the EA&#039;s performance for different trading conditions.</p><p>Here is the specific line of code where Entry_Amount is utilized:</p><p>mql5<br />ManageOrderSend(command, Entry_Amount, stopLoss, takeProfit, 0, signal.MagicNumber);<br />I have attempted to resolve this by ensuring that the optimization settings are correctly configured and that the Entry_Amount is listed as an optimizable variable. Despite these efforts, the issue persists.</p><p>Could you kindly provide guidance on how to modify the EA&#039;s code to allow for the optimization of the Entry_Amount variable? If there are any specific instructions or code adjustments needed, I would greatly appreciate your expertise.</p><p>Thank you for your time and assistance. I look forward to your valuable input.</p><p>Best regards,</p>]]></content>
			<author>
				<name><![CDATA[gabdecsters]]></name>
				<uri>https://forexsb.com/forum/user/14801/</uri>
			</author>
			<updated>2024-01-13T05:23:50Z</updated>
			<id>https://forexsb.com/forum/post/78281/#p78281</id>
		</entry>
</feed>
