Orders Execution
Indicators Used
0
Views
0
Downloads
0
Favorites
MA Reverse
int count;
//--------------------------------------------------------------------
int start()
{
double MA;
//--------------------------------------------------------------------
MA=iMA(NULL,0,14,0,MODE_SMA,PRICE_CLOSE,0);
//--------------------------------------------------------------------
if (Bid==MA)
count=0;
if (Bid-MA>0)
count+=1;
if (count==150 && Bid-MA>0.004)
OrderSend(Symbol(),OP_SELL,1.0,Bid,3,0,Bid-30*Point);
if (count>0 && Bid-MA<0)
count=0;
if (count<0 && Bid-MA>0)
count=0;
if (Bid-MA<0)
count-=1;
if (count==-150 && Bid-MA<-0.004)
OrderSend(Symbol(),OP_BUY,1.0,Ask,3,0,Bid+30*Point);
return;
}
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
---