Codes

HAS EA NEW for MetaTrader 4

Based on the HAS indicator

Forum

Screenshot Zero file size(MQL5)

I know there posts about this.. but none of them actually gives and answer. I want to take a screenshot when doing a back test. I've tried visual mode and non visual mode. When doing a screenshot the file is 0KB? I've tried all the code snippets I could find on the forum. Below is the one I'm

Screenshot in MQL5

Good day kind people, Does anybody know how to take screenshots in MQL5? I've tried all the many, many (4/5 others posts) and nothing is working. :( The chartscreenshot command does not seem to be doing what it's supposed to be doing. :(

Display text on terminal MQL5.

I use to be able to do this in MQL4, but now I can not do this in MQL5. I found many 1/2 answers or how to's, but none works. If anybody would be so kind as to perhaps so me the full code. Just place text on x,y with color, nothing complicated... Thank you kindly for any assistance

Heiken Ashi Smoothed on multiple charts?

Good day. First of all thanks a lot to PHY for helping me with my previous post. U rock! He gave me the key to build my first robot! And a semi successful one at that! https://www.mql5.com/en/users/phy I would like to know, using the Heiken Ashi Smoothed indicator, how use the indicator on multiple

Bermuda triangle backtesting problem.

Hi there. Strange thing. I downloaded 2 history charts and was back testing with it happily. I was testing some EA's I found on the net, no problem. Then all of a sudden. Can not find history data. I checked . The data was still there. I downloaded it again, and once more for luck, but I still could

New HAS EA for you to play with.

Hi there. This is a EA that I'm working on. It's in the "play with" stage now and I though I would make it open for everybody to play with. How this works. Al the changes takes place here: // PLACE ORDER if (OrdersTotal() < 1) { //if (m1==1&&m5==0&&m15==1&&m30==1&&h1==1&&h4==1) if

Bigger than smaller, that is the question.

Hi there. I'm using the Heinek Asi smoothed (HAS) indicator to determan the buy / sell of the trates. At the moment I just use the following code. if (four_haOpen<four_haClose) {fourhourbuy=true;COL5=Blue;} else {fourhourbuy=false; COL5=Red;} if (one_hour_haOpen<one_hour_haClose)

Time frame loads, then load again and again?

Hi. I've tested my expert for some time. The expert uses muliple time frames. I've added some time frames and now the expert keeps on loading ie the 30min start over and over. I can see the memory usage going up as the chart is loaded over and over. I tried to remove the one that being loaded over

A non scripting question. Very strange.

Hi there. I'm just checking to see if this has happend to someone else aswell. My robot I'm testing on a demo account is working fine. the problem is when I close the MT4 platfor to reboot or someting. For some strange reason it closes one of the open trades? I can not figure out why. I do not think

Q regarding trailing profit, not stoploss

Hi there. I've been trying to modify the code: if(TrailingStop>0) { OrderSelect(0,SELECT_BY_TICKET); if(Bid-OrderOpenPrice()>Point*TrailingStop) { if(OrderStopLoss()<Bid-Point*TrailingStop) { OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),0,Blue); return(0); } }