Good evening, I am attempting to write a HHLLS (Higher High Lower Low EA). First HHS and LLS are calculated as below. double High1 = iHigh ( Symbol (), Period (), 1 ); double High2 = iHigh ( Symbol (), Period (), 2 ); double Low1 = iLow (
Good morning, I've created 2 very basic RSI driven EAs that run fine when just running off my computer. Today I rented a VPS to try run it virtually. I constantly get this error when trying to sync. Is there any specific line of code that one needs
Hi Guys, My EA that I am currently running has a tight SL. My SL is set at 2 pips. I have compared actual trades to the strategy tester during the same period and the results are a little different. The average SL for the strategy tester is $1.80
Hi guys, I would like to hear your thoughts on this. I have spent a few months developing my EA that seeks out momentum and tries to capitalize on it while having enough downside protection to be profitable. My EA has 9 entry conditions and is
Hi Guys, Does anyone have an Oanda-v20 live account that has been running EURUSD for more than 6 months on MT4, and are willing to share their history file with me on google drive? I have been running mine since 1 December and the backtesting data is
Hi Guys, I'm trying to add to my code that once price has reached exactly halfway between my entry point and TP, then SL will move to where the entry position was, to add some downside protection on my code. I looked around to find a basic trending
Hi Guys, My EA that I created is based on momentum and works extremely well when there is either an upward or downward trend . Not so much when markets are trading relatively flat. I need a way to counter this and the idea I have is to simply add a
Hi Guys, I am trying to add some code to my EA so that it only has one trade open per currency pair at a time. I found this code online and tried it but I'm now getting the following errors: Could anyone possibly give me advice on how to
Hi Guys, I'm having trouble with one of my sell signals . The buy signal works perfect but when I turn it around for a sell signal it gives me a False statement the whole time. double MA1L15 = iMA ( NULL , 15 , 7 , 0 , MODE_SMA , PRICE_OPEN , 0
Hi Guys, This is probably a simple question but I've converted my code to run short trades too but for some reason it won't execute any short orders. Could someone please help? I am sure that the short order is just in a wrong place? The code is
Hi Guys, I have been working on this EA for a while and it is extremely profitable if you run the strategy tester on daily or H1 timeframes... however on M1 it goes bankrupt. The basic strategy is: after 5 consecutive positive ticks, enter a long
Hi Guys, I'm trying to write a code so that each trade is executed with the maximum available lots according to my account balance , but I am receiving a '*' constant expected error the whole time. Could anyone giving me some advise on how to fix
Hi Guys, I was wondering if anyone could help me with my EA. I want my code to enter a long position if each of the previous 5 bids are all higher than the previous bid. In otherwords: Enter long buy if: PrevBid5<PrevBid4 PrevBid4<PrevBid3
Hi Guys, I have been trading on OANDA for years but am new to Autotrading platforms. I want to write an EA that will do the following but I have no idea where to start: After 5 consecutive positive ticks (5 green 1-second candles), It should enter a
Hi Guys, Could anyone assist me with why I get an array out of range error with this code and how to fix it? I am very new to MT4 coding. Thanks in advance! extern int MagicNumber=10001; extern double Lots =0.1; extern double
Hi Guys, I have been trading on OANDA for years but am new to Autotrading platforms. I want to write an EA that will do the following but I have no idea where to start: After 5 consecutive positive ticks (5 green 1-second candles), It should enter a