Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
Currently writing an EA, one of the indicators i'm using is braintrend2sig.
However i'm having difficulty writing the correct Icustom function. Can someone please help me.
(my programing experience is mainly batch files from DOS days, yeah I know i'm still in the past but I do get by only just)
If you could place two line's of code to represent value 1 (Long)& value 2 (short)that would be great.
HERE is the indicator so you know what you working with.
double iCustom( string symbol, int timeframe, string name, ... , int mode, int shift)
Parameters:
symbol - Symbol the data of which should be used to calculate indicator. NULL means current symbol.
timeframe - Time frame. It can be any of Time frame enumeration values.
name - Custom indicator compiled program name.
... - Parameters set (if needed).
mode - Line index. Can be from 0 to 7.
shift - Shift relative to the current bar (number of periods back), where the data should be taken from.
It works except is places the trade on every bar. How do you allow the EA to only place the trade when the signal is given. One would think that iCustom(NULL, 0, "BrainTrend2Sig",1,0); //down arrow, iCustom(NULL, 0, "BrainTrend2Sig",1,0); //up arrow would be fine except this does not seem to be the case.
It works except is places the trade on every bar. How do you allow the EA to only place the trade when the signal is given. One would think that iCustom(NULL, 0, "BrainTrend2Sig",1,0); //down arrow, iCustom(NULL, 0, "BrainTrend2Sig",1,0); //up arrow would be fine except this does not seem to be the case.
Jorgka
its not
iCustom(NULL, 0, "BrainTrend2Sig",1,0); //down arrow,
iCustom(NULL, 0, "BrainTrend2Sig",1,0); //up arrow
which you typed above
its
iCustom(NULL, 0, "BrainTrend2Sig",0,0); //up arrow
iCustom(NULL, 0, "BrainTrend2Sig",1,0); //down arrow
if you still have problems with it making to many entrys you may want to check out ***THIS*** thread
Here's a copy of the brainsig2test EA, I'v taken out all other config's only to concentrate on these signals.
Now open up 1min chart (just for testing) & run the EA. You'l see what I mean.
All I need it to do is open orders when the signals are given. Buy for blue signal & sell for red signal. If you can help me that would be great. once this is done I can add all other parameters & send you the entire EA which has plenty of potential. This is my only outstanding issue & out of bounds of my programing knowledge.
looks fine to me i did change time frame to 0 for current chart before i checked it and removed the 500 reference which i believe just tells the indicator how many bars back to draw. tested on 30 min. the backtester will enter a crapload of times on one bar here and there so sometimes u have to add some kinda code that will limit when it enters.
Cheers Lowphat. here's the ea. I'm currently testing the EA now please let me know on your thoughts please, cause I am only a newbie in trading & programming so your ideas will be welcomed.
The Idea is.
Trading only on 15 min's
Buy
Juice > 0
Nina Yellow > Blue
KI > 0
BBands = Green
Braintrendsig has given Blue arrow
Exit when Brainstop is red.
Sell
Juice > 0
Nina Yellow < Blue
KI < 0
BBands = orange
Braintrendsig has given red arrow
Does anyone have the the complete BrainTrend1Sig files, mine became corrupted after I altered them, and I dont have a backup for it anymore. Hard drive crashed!
Guess back to square one, if someone can upload the files, that will be appreciated!
Does anyone have the the complete BrainTrend1Sig files, mine became corrupted after I altered them, and I dont have a backup for it anymore. Hard drive crashed!
Guess back to square one, if someone can upload the files, that will be appreciated!