I found an indicator a couple of years again. I don't know whom wrote it but it had this header at top so credit is due here //+------------------------------------------------------------------+ //| Trading_Vol.mq4 | //|
So I'm making my first effort into using arrays. I'm simply trying to store close price at certain times to retrieve later in my code. Is this code going to achieve the desired result or have I ballzed up completely. int OnInit () { double EU[ 6 ] = { iClose ( "EURUSD" , PERIOD_H1 , 2 ), iClose
Good morning all. I use the this code to take screenshot yet when I open the file there are no picture. Can somebody identify my dumb dumb. Many thanks in advance. //+------------------------------------------------------------------+ //| Take Screenshot
Quick couple of questions, hoping someone can help. If I did this #define NoBox 0 #define BoxForming 1 #define ActiveBox 2 #define ActiveTradePattern 3 int GetBoxCondition; int somefunc() { if (A==B) GetBoxCondition = NoBox; else if (A==C) GetBoxCondition = BoxForming ; else if (A==D)
From the dairies of the worlds worst programmer So I run the attached code through strategy tester Yet every time I do it slows down each pass just a little bit more. Initially I could do a non-visual test in under 10 minutes. Now it takes an hour. As for using the optimizer, well given up on that
Hi all Been searching around the forum looking for references in regard to when to use "for - count down" vs "for - count up" statements. I use the following code to check open orders in my bot int orders_total = OrdersTotal (); for ( int pos = orders_total- 1 ; pos>= 0 ; pos--) { if
So I run this code in strategy tester //+------------------------------------------------------------------+ //| Bobs Magic Boxes v4.2.mq4 | //| Copyright 2016, MetaQuotes Software Corp. | //|
Hi all I am running the below code in an EA, the idea is to copy the pattern created inside the bot as a comment on my order. But I get the above error. What have I done wrong? //Specification Engine Rule 1 if (currentboxhigh>prev1high && currentboxlow<prev1low) CurrentBoxType= 1001 ; if
Hi all I'm running the attached code through strategy tester . Works well in visual mode. Just as nice in non-visual mode. But try and run an optimization test and it doesn't take a trade. Any chance someone can tell me why? I do note most my other codes work fine. I do have a few variants of this
This is following on from a recent post I built this little indicator with some valued help to measure in my eyes, a pairs "strength". Use it much like an RSI or Stochs. But that's another topic. ///+------------------------------------------------------------------+ //|