<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forex Software — Custom Indicators]]></title>
	<link rel="self" href="https://forexsb.com/forum/feed/atom/topic/9784" />
	<updated>2024-07-30T13:31:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forexsb.com/forum/topic/9784/custom-indicators/</id>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80756/#p80756" />
			<content type="html"><![CDATA[<p>Like I said before - indicators, whether they are .cs or .mqh files for exporting, need to follow strict FSB standard. If you let some ai bots to code indicators, then they might be correct from a coding language point of view, but they are not compatible with the program, and they will never, ever load up. Moreover, if indicators do not follow the concept of how indicators are supposed to be used in the program, it will introduce a whole raft of other problems, effectively rendering those indicators useless and, what&#039;s more relevant, dangerous as their performance will have nothing to do with stats they produce in backtest. So why waste time and effort and fool yourself with randomly working indis?</p><p>Regarding your last attachment - it is purely mt indicator, it has nothing to do with FSB, there&#039;s nothing to figure out.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2024-07-30T13:31:48Z</updated>
			<id>https://forexsb.com/forum/post/80756/#p80756</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80746/#p80746" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><p>Cannot find while exporting? It needs to be in .mqh, not in .cs.</p></blockquote></div><p>Can&#039;t find a solutions on&nbsp; error message: StartIndex cannot be less than zero. Can help me figure it out. mqh file attached. Thanks!</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-30T07:34:46Z</updated>
			<id>https://forexsb.com/forum/post/80746/#p80746</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80743/#p80743" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><p>Cannot find while exporting? It needs to be in .mqh, not in .cs.</p></blockquote></div><p>Thanks! &quot;Its says cannot find the following indicator&quot;&nbsp; Check library the indicator dll is present.</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-29T20:54:37Z</updated>
			<id>https://forexsb.com/forum/post/80743/#p80743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80742/#p80742" />
			<content type="html"><![CDATA[<p>Cannot find while exporting? It needs to be in .mqh, not in .cs.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2024-07-29T20:38:52Z</updated>
			<id>https://forexsb.com/forum/post/80742/#p80742</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80740/#p80740" />
			<content type="html"><![CDATA[<p>Facing another issues: Cannot find the indicator? I usually, edit cs in notepad +++ and the issue gone. but now still persist. C# pass no errors. attached the indicator below</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-29T19:17:03Z</updated>
			<id>https://forexsb.com/forum/post/80740/#p80740</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80657/#p80657" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><p>Firstly I don&#039;t see the point of this indicator when FSB already has such an indicator - it is called <strong>Moving Averages Crossover.</strong></p><p>If you want a strip-down version of it, and that is how your sample looks like, then it is much more reasonable approach to use that standard indi and strip it down to your liking!</p><p>Secondly, my advice is to first learn the concept of FSB indicators and how they are supposed to work (ton of info in the forum, in the user manual and the source code of indis provide more than enough examples to figure it out), and only after that you can use different AI bots to assist you in indicator coding as the most critical flaw I see in your indicator is the absence of previous bar usage. The backtest results you see in FSB are not realistic because your indicator looks into the future! In live trading it will not be able to look into the future and the expected behaviour and returns will be diametrically opposed.</p><p>Thirdly, your .mqh is not what is needed. Open MovingAveragesCrossover.mqh from the folder path I gave you in my last post and study it.</p></blockquote></div><p>Thank for advice! </p><p>Probably will took me years to learn to code if I do it in old ways but I see your point. I successfully,&nbsp; created custom after custom indicators base on my style of trading.</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-22T06:41:52Z</updated>
			<id>https://forexsb.com/forum/post/80657/#p80657</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80640/#p80640" />
			<content type="html"><![CDATA[<p>Firstly I don&#039;t see the point of this indicator when FSB already has such an indicator - it is called <strong>Moving Averages Crossover.</strong></p><p>If you want a strip-down version of it, and that is how your sample looks like, then it is much more reasonable approach to use that standard indi and strip it down to your liking!</p><p>Secondly, my advice is to first learn the concept of FSB indicators and how they are supposed to work (ton of info in the forum, in the user manual and the source code of indis provide more than enough examples to figure it out), and only after that you can use different AI bots to assist you in indicator coding as the most critical flaw I see in your indicator is the absence of previous bar usage. The backtest results you see in FSB are not realistic because your indicator looks into the future! In live trading it will not be able to look into the future and the expected behaviour and returns will be diametrically opposed.</p><p>Thirdly, your .mqh is not what is needed. Open MovingAveragesCrossover.mqh from the folder path I gave you in my last post and study it.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2024-07-18T21:45:36Z</updated>
			<id>https://forexsb.com/forum/post/80640/#p80640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80639/#p80639" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><p>Open your EA and look up line 2852, that line is giving you array out of range error. It might be directly erroneous there or the error can be somewhere earlier, which results as a conflict in line 2852. Depends how have you coded it. </p><p>For FSB C# indis you go the repository in github, link to the post, which contains the link, below <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p><a href="https://forexsb.com/forum/post/19842/#p19842">https://forexsb.com/forum/post/19842/#p19842</a></p><p>It offers everything you need to know.</p><p>For corresponding samples of .mqh versions - Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com\Indicators</p><p>---<br />I&#039;m assuming now that you made light and quite simple modifications to one of FSB&#039;s standard indis. So, you need to take the respective .mqh file as a base version and make the same modifications there. Usually it&#039;s just a copy-paste job but it depends on complexity of your added changes.</p><p>If you don&#039;t consider it top secret, you can post the code lines you are having trouble with, and it will be a bit easier to help, guide and teach you.</p></blockquote></div><p>i have some sample. I believe screw up in mgh. My cs file im using AI assist making it and pass FSB PRO checker. only failed if I run it to mt4. maybe the problem from conversion mqh to mql4?</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-18T17:20:20Z</updated>
			<id>https://forexsb.com/forum/post/80639/#p80639</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80633/#p80633" />
			<content type="html"><![CDATA[<p>Open your EA and look up line 2852, that line is giving you array out of range error. It might be directly erroneous there or the error can be somewhere earlier, which results as a conflict in line 2852. Depends how have you coded it. </p><p>For FSB C# indis you go the repository in github, link to the post, which contains the link, below <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p><a href="https://forexsb.com/forum/post/19842/#p19842">https://forexsb.com/forum/post/19842/#p19842</a></p><p>It offers everything you need to know.</p><p>For corresponding samples of .mqh versions - Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com\Indicators</p><p>---</p><p>I&#039;m assuming now that you made light and quite simple modifications to one of FSB&#039;s standard indis. So, you need to take the respective .mqh file as a base version and make the same modifications there. Usually it&#039;s just a copy-paste job but it depends on complexity of your added changes.</p><p>If you don&#039;t consider it top secret, you can post the code lines you are having trouble with, and it will be a bit easier to help, guide and teach you.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2024-07-18T09:58:40Z</updated>
			<id>https://forexsb.com/forum/post/80633/#p80633</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80628/#p80628" />
			<content type="html"><![CDATA[<p>Footon just wondering FSB PRO has it own indicator structures? Possible to get a sample for c# and mqh.</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-18T00:25:55Z</updated>
			<id>https://forexsb.com/forum/post/80628/#p80628</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80627/#p80627" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>footon wrote:</cite><blockquote><p>Check the error messages.</p><p>And it is not just about moving files between folders, .mqh version must be in mql, not in C#.</p></blockquote></div><p>Thanks! Got it compile without error on Mt4 only issues </p><p>Journal message from mt4:<br /> teting kakd EURUSD,H1: array out of range in &#039;teting kakd.mq4&#039; (2852,35)<br />&nbsp; teting kakd EURUSD,H1: Loading data: EURUSD,H1, Minimum bars: 27...</p><p>Any suggestions. Thank you very much!</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-18T00:08:13Z</updated>
			<id>https://forexsb.com/forum/post/80627/#p80627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80618/#p80618" />
			<content type="html"><![CDATA[<p>Check the error messages.</p><p>And it is not just about moving files between folders, .mqh version must be in mql, not in C#.</p>]]></content>
			<author>
				<name><![CDATA[footon]]></name>
				<uri>https://forexsb.com/forum/user/1242/</uri>
			</author>
			<updated>2024-07-17T09:32:10Z</updated>
			<id>https://forexsb.com/forum/post/80618/#p80618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80612/#p80612" />
			<content type="html"><![CDATA[<p>Finally, figured it out convert cs to mqh custom folder after that able to export the EA and new problem arrives. I can&#039;t run the EA in MT4? any ideas? run flawless in FSB Pro but can&#039;t run it mt4 did I miss something?</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-16T23:42:44Z</updated>
			<id>https://forexsb.com/forum/post/80612/#p80612</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Custom Indicators]]></title>
			<link rel="alternate" href="https://forexsb.com/forum/post/80611/#p80611" />
			<content type="html"><![CDATA[<p>Watched the Custom Indicator Video tutorials and able to create my own custom indicators.</p><p>I successfully created custom indicators CS file using visual studio and works flawless in FSB Pro. The only issues im having trouble. During Save Expert Advisor received a prompt : Cannot find the following indicator. According to my understanding custom indicators can be created via c#(cs). That part of the video confusing to me. cs should be converted to mqh? I though FSB Pro automatically convert the cs to mqh? Step by step guide will be nice.&nbsp; Thanks</p>]]></content>
			<author>
				<name><![CDATA[SurfingWave]]></name>
				<uri>https://forexsb.com/forum/user/14273/</uri>
			</author>
			<updated>2024-07-16T20:37:49Z</updated>
			<id>https://forexsb.com/forum/post/80611/#p80611</id>
		</entry>
</feed>
