Forum

Not able to buy or sale when testing my code.

I'm trying to test my code but I keep getting the below errors/messages which prevents me from buying or selling. Thoughts? 2017.05.08 08:46:29.749 2017.04.02 21:08:59 current account state: Balance: 10000.00, Credit: 0.00, Commission: 0.00, Accumulated: 0.00, Assets: 0.00, Liabilities: 0.00

My trading account says "Automating trading is disabled"

I want to test some code I just wrote but I can't because automated trading has been disabled. Thoughts

Can I change the path of "TradeAlgorithms.mqh" that my code is looking for?

My code is looking for "TradeAlgorithms.mqh" in a directory that is convoluted and several levels deep. Can I simply this

Most Current Values in My Array

This is just for verification because I seem to be getting conflicting results but per my below code shouldn't my most current values be CloseArray[0] and RSI_ARRAY[0] ? Or did I get my signals mixed and my most current values would be CloseArray[1] and RSI_ARRAY[1] Thoughts? CloseHandle=

Trying to capture the current closed price

Does anyone know how to capture the current closed price ? I'm writing an EA program and I assumed that the current closed price was contained within the below but I was wrong. input ENUM_APPLIED_PRICE CURRENT_CLOSE = PRICE_CLOSE ;

Program base price and quote price

I'm looking to include the base price and quote price in my EA program but Im not able to find a fuction that provides the quote price. I believe I can use 'Signal_Base_Price' for the base price but if Im barking up the wrong tree let me know. Thanks in advance

My for loop is not incrementing

I have multiple for loops in my EA program and while the first for loop works as designed the second for loop does not increment as stays stuck at zero. Both loops are in the OnTiick() function . Any thoughts as to why this is? CopyBuffer (RSIHandle, 0 , 0 , 9 ,RSI_ARRAY); ArraySetAsSeries

My EA program loops prints same values! Why?

I have an EA program that buys/sales based on the value of defined and calculated indicators . But when I write those values to a flat file that are they never change and the counter never increments. I think Im too close to the problem to diagnose it and would appreciate another set of eyes to

SellPositionOpen(): OrderCheck(): Invalid request stops

I keep getting the below errors during execution of my EA code. Been digging around but can't seem to find figure this one out. Thoughts? 2015.07.06 11:28:41.941 2015.03.27 22:14:59 SellPositionOpen(): OrderCheck(): Invalid request stops 2015.07.06 11:28:41.941 2015.03.27 22:14:59

My EMA array keeps showing a negative value, is that normal?

My EMA array keeps showing a negative value, is that normal or did I do something wrong