EA compiles OK, but I get no trades at all. Even if I lengthen the time. Thanks anyway, I needed a simple EA to get me writing my own. I think I have problems with my proxy server and the strategy tester :(.
Can anyone help me with this? Why is this not trading live?
This is source code modified. Please run this as long from 01/16 till today or whenever you download it and be amazed. Yes the risk /reward is not great. However, look at the percent won and the graphs. However also note that the total trade # is low. Hence dont expect a trade right away. Maybe a few trades (less than 5) a month can be expected.
int init() { return(0); } int deinit() { return(0); } int start() { int total = OrdersTotal(); if (OrdersTotal() < 1) // I wont open more than 1 trade per time. if(Hour() > 8 && Hour() < 17) //Will trade during volatile times when people are usually awake if( iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) ) if ( ( (iMA(NULL,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(NULL,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(NULL, 15, 0.02, 0.2, 0) > High[0]) && ( iBearsPower(NULL,15,13,PRICE_CLOSE,0) < 0 && iBearsPower(NULL,15,13,PRICE_CLOSE,0) > iBearsPower(NULL,15,13,PRICE_CLOSE,1))) OrderSend(Symbol(),OP_SELL,0.1,Bid,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,Red); // Risk/Reward sucks here.. if (OrdersTotal() < 1) // I wont open more than 1 trade per time. if(Hour() > 8 && Hour() < 17) //Will trade during volatile times when people are usually awake //If the prices are within Boil Band and EMA 3,34 crossover in favor and BullsPower in favor, then trade in buy if( iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) ) if( (High[1] < iBands(NULL,0,20,2,0,PRICE_LOW,MODE_UPPER,1)) && (High[2] < iBands(NULL,0,20,2,0,PRICE_LOW,MODE_UPPER,2))) if ( (iMA(NULL,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(NULL,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(NULL, 15, 0.02, 0.2, 0) < Low[0])&&( iBullsPower(NULL,15,13,PRICE_CLOSE,0) > 0) && (iBullsPower(NULL,15,13,PRICE_CLOSE,0) < iBullsPower(NULL,15,13,PRICE_CLOSE,1))) OrderSend(Symbol(),OP_BUY,0.1,Ask,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,Green);// Risk/Reward sucks here.. }
tg2007:
This is source code modified. Please run this as long from 01/16 till today or whenever you download it and be amazed. Yes the risk /reward is not great. However, look at the percent won and the graphs. However also note that the total trade # is low. Hence dont expect a trade right away. Maybe a few trades (less than 5) a month can be expected.
This is source code modified. Please run this as long from 01/16 till today or whenever you download it and be amazed. Yes the risk /reward is not great. However, look at the percent won and the graphs. However also note that the total trade # is low. Hence dont expect a trade right away. Maybe a few trades (less than 5) a month can be expected.
int init() { return(0); } int deinit() { return(0); } int start() { int total = OrdersTotal(); if (OrdersTotal() < 1) // I wont open more than 1 trade per time. if(Hour() > 8 && Hour() < 17) //Will trade during volatile times when people are usually awake if( iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0) > iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) ) if ( ( (iMA(NULL,15,3,0,MODE_EMA,PRICE_MEDIAN,0)) < (iMA(NULL,15,34,0,MODE_EMA,PRICE_MEDIAN,0))) && (iSAR(NULL, 15, 0.02, 0.2, 0) > High[0]) && ( iBearsPower(NULL,15,13,PRICE_CLOSE,0) < 0 && iBearsPower(NULL,15,13,PRICE_CLOSE,0) > iBearsPower(NULL,15,13,PRICE_CLOSE,1))) OrderSend(Symbol(),OP_SELL,0.1,Bid,10,Bid+400*Point,Bid-4000*Point,"Open a Sell Order",16384,0,Red); // Risk/Reward sucks here.. if (OrdersTotal() < 1) // I wont open more than 1 trade per time. if(Hour() > 8 && Hour() < 17) //Will trade during volatile times when people are usually awake //If the prices are within Boil Band and EMA 3,34 crossover in favor and BullsPower in favor, then trade in buy if( iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)< iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0) ) if( (High[1] < iBands(NULL,0,20,2,0,PRICE_LOW,MODE_UPPER,1)) && (High[2] < iBands(NULL,0,20,2,0,PRICE_LOW,MODE_UPPER,2))) if ( (iMA(NULL,15,3,0,MODE_EMA,PRICE_MEDIAN,0) > iMA(NULL,15,34,0,MODE_EMA,PRICE_MEDIAN,0) ) && (iSAR(NULL, 15, 0.02, 0.2, 0) < Low[0])&&( iBullsPower(NULL,15,13,PRICE_CLOSE,0) > 0) && (iBullsPower(NULL,15,13,PRICE_CLOSE,0) < iBullsPower(NULL,15,13,PRICE_CLOSE,1))) OrderSend(Symbol(),OP_BUY,0.1,Ask,10,Ask-4000*Point,Ask+400*Point,"Open a Buy Order",16384,0,Green);// Risk/Reward sucks here.. }
Start testing with 1000USD EURUSD M15
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Source Code:
Author: programmer