Home › Forums › General Discussions › Random Help/Advice
- This topic has 14 replies, 7 voices, and was last updated 8 years, 1 month ago by
hushmoney.
-
AuthorPosts
-
Thought i’d start this forum for random stuff, things that don’t have specifically to do with particular topics else where on the site, then people don’t have to start other forums etc to get an answer to some question. Just a general question and answer recourse.
I wonder if any one has a solution to this.
I have a problem with getting my EA to work on a micro account.
I find that if i run an mt4 back test on a time chart everything works good, but my live charts have the suffix micro appended so i get pair names like USDJPYmicro.
I am using Kiads brilliant renko builder indicator. I apply the indicator to a 1M USDJPYmicro chart and put USDJPYmicro in the pair extern and 2 for the offline chart.
I open the M2 offline chart and it ticks nicely. I then apply EA to M2 chart, but it does not trade.
I tried in the EA to put extern input string symbol= “USDJPY” and “USDJPYmicro” and changed the Symbol() in the EA to =symbol, but still doesn’t seem to work.
Any one have any idea what i should do to fix please.I wonder if any one has a solution to this. I have a problem with getting my EA to work on a micro account. I find that if i run an mt4 back test on a time chart everything works good, but my live charts have the suffix micro appended so i get pair names like USDJPYmicro. I am using Kiads brilliant renko builder indicator. I apply the indicator to a 1M USDJPYmicro chart and put USDJPYmicro in the pair extern and 2 for the offline chart. I open the M2 offline chart and it ticks nicely. I then apply EA to M2 chart, but it does not trade. I tried in the EA to put extern input string symbol= “USDJPY” and “USDJPYmicro” and changed the Symbol() in the EA to =symbol, but still doesn’t seem to work. Any one have any idea what i should do to fix please.
Hi Brother, maybe you could use this one..
Search for a sub string in a string. <div> int StringFind( string string_value, // string in which search is made string match_substring, // what is searched int start_pos=0 // from what position search starts ); </div> Parameters string_value [in] String, in which search is made. match_substring [in] Searched substring. start_pos=0 [in] Position in the string from which search is started. Return Value Returns position number in a string, from which the searched substring starts, or -1, if the substring is not found.
for example
//at setting input create string variable extern string BasicPairName =""; // you just put the basic pairname without prefix or suffix like "USDJPY" //at your filter loop for order entry or exit if ( StringFind(Symbol(),BasicPairName,0)!=-1 ) // in plain English this mean "if in the symbol name we found the basic name of USDJPY // then do anything inside the bracket { // what do you want to do if the conditions correct }
Hope it help and best regards
MTH
-
This reply was modified 8 years, 3 months ago by
MTH2014.
Intuition, Experiences and Common sense..
http://www.binaryoptionsedge.com/[ limprobable ]March 9, 2015 at 3:07 pm #5568Hello,
Does someone could have a look on this simple EA, based on 2 indcicators:
1 – Heiken ashi MA : buy when green, sell when red
2 – filter with M-Candle HMA (i dont have the mq4 files) or M-candle: only buy when green and only sell when red.
Thanks a lot in advance for your generosity and your time,
Ps 1: it will be luxury if we can have 5 orders with differents TP
Ps2 : i have some good results with this simple combination on manual trading
Green pips to you
-
This reply was modified 8 years, 2 months ago by
limprobable.
-
This reply was modified 8 years, 2 months ago by
limprobable.
-
This reply was modified 8 years, 2 months ago by
limprobable.
Attachments:
You must be logged in to view attached files.Does someone could have a look on this simple EA, based on 2 indcicators
Hi limprobable,
You didn’t post the EA we should have a look at.
Regards, simplex
A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)
[ limprobable ]March 11, 2015 at 10:39 am #5666Does someone could have a look on this simple EA, based on 2 indcicators
Hi limprobable, You didn’t post the EA we should have a look at. Regards, simplex
Sorry bad english, i dont have the EA, it’s a request if some coders can make it
[ BalrogTrader ]April 1, 2015 at 2:49 pm #6124Hi,
I have a basic EA problem: My EA opens lots of positions at the trader trigger -which poisons my algorithm-. Later it works correctly. This situation is depicted in the following figure.
Does anyone know a method to prevent this from happening?
-
This reply was modified 8 years, 2 months ago by
BalrogTrader.
Attachments:
You must be logged in to view attached files.Nothing has ever motivated me more than this...
Hey Balrog. You could define minimum range between orders to be X amount of pips. That would solve the problem. But i have no idea how to code it.
Best, Michael
Hi, I have a basic EA problem: My EA opens lots of positions at the trader trigger -which poisons my algorithm-. Later it works correctly. This situation is depicted in the following figure. Does anyone know a method to prevent this from happening?
This one looks like many trades on the same bar, since condition to trade are still true.
Limit the trades to only one per bar.
G.
[ BalrogTrader ]April 1, 2015 at 7:53 pm #6130Hey Balrog. You could define minimum range between orders to be X amount of pips. That would solve the problem. But i have no idea how to code it. Best, Michael
Thanks Edington…
Hi, I have a basic EA problem: My EA opens lots of positions at the trader trigger -which poisons my algorithm-. Later it works correctly. This situation is depicted in the following figure. Does anyone know a method to prevent this from happening?
This one looks like many trades on the same bar, since condition to trade are still true. Limit the trades to only one per bar. G.
Thanks a lot. It seems that I’ll use Bars to accomplish this…
Nothing has ever motivated me more than this...
Hi, I have a basic EA problem: My EA opens lots of positions at the trader trigger -which poisons my algorithm-. Later it works correctly. This situation is depicted in the following figure. Does anyone know a method to prevent this from happening?
Hi Brother,
You could use Bar Timing to limit your order entry,
at your global, you could create variable
datetime CurrentBarTiming=0;
and under your main program loop inside OnTick() or Start() (for the old EA way).
you may look at this basic example bellow;
if (CurrentBarTiming !=Time[0]) // this will trigger if current bar time not equal to CurrentBarTiming variable. { if (your order entry filter) { ticket=OrderSend(Symbol(),OP_BUY,MyLots,Ask,3,BuySL,BuyTP,MagicComment,0,0,clrGreen); // this is you entry order example CurrentBarTiming = Time[o]; // this will renew the timing variable value } }
Hope it help and Best Regards
MTH
Intuition, Experiences and Common sense..
http://www.binaryoptionsedge.com/[ BalrogTrader ]April 2, 2015 at 6:20 am #6138Hi Brother, You could use Bar Timing to limit your order entry, at your global, you could create variable
datetime CurrentBarTiming=0;
and under your main program loop inside OnTick() or Start() (for the old EA way). you may look at this basic example bellow;
if (CurrentBarTiming !=Time[0]) // this will trigger if current bar time not equal to CurrentBarTiming variable. { if (your order entry filter) { ticket=OrderSend(Symbol(),OP_BUY,MyLots,Ask,3,BuySL,BuyTP,MagicComment,0,0,clrGreen); // this is you entry order example CurrentBarTiming = Time[o]; // this will renew the timing variable value } }
Hope it help and Best Regards MTH
Kiads,
Thanks a lot. You’re very helpful as usual. I found somewhere and used such a method:
“if (Bars != onetradeperbar)
{ // trigger with a number of if’s
ticket=OrderSend(…); // Open buy position
onetradeperbar = Bars; // Now this buy position is only executed once
}
”
Maybe yours is better. I’ll try that as well. Thank you very much:good:
-
This reply was modified 8 years, 2 months ago by
BalrogTrader.
Nothing has ever motivated me more than this...
Dear brothers,
I was wondering if there are any traders from Sweden or Norway here. I have a request that is not trading related. If you have good will, please drop me a pm. Thank you.
Best, Michael
p.s. Apologies to other traders for going off topic.
Following the (shameless surrender) agreement of the Western-Powers(???) with Iran – Expect oil prices to drop further.
For those who doesn’t like the taste of oil in their morning coffee (read as = don’t trade oil…) – look for shorting the CAD, but do that only AFTER the coming friday NFP.
Canada is exporter of oil – and drop in oil price will influence its currency.
Wait for the coming NFP if you plan to short the CAD by going long USDCAD, NFP might not smell like roses as the previous ones…
Green pips!
G.
Hi kiads,
Very sorry for delay in responding to your kind reply.
Thank you for posting the code.
Actually i found what was causing the issue. I was using your flip renko vB610, because i had the micro suffix, i had set StrangeSymbolName to true and just put EURUSD in the pair name which didn’t work. However when i set StrangeSymbolName to false and put EURUSDmicro in the pair name everything worked well.
Thank you for your brilliant indicators and your help. -
This reply was modified 8 years, 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.