Orders Execution
Indicators Used
0
Views
0
Downloads
0
Favorites
SourceCode2_testing
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..
}
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---