Forum

DEAL_REASON_SL no longer recognized?

I have a function for finding the price and reason for the last deal to have taken place. I made a change, it stopped working, so I changed it back...and it still wasn't working. I reverted to an older version and it STILL IS NOT WORKING. How is this possible? Oh yeah and backtesting on history data

prev_calculated not reset to 0 after timeframe change?

I'm having a heck of a time setting up my custom indicator to only update the most recent bar on new_bar event and update the entire array when the timeframe is changed. My indicator is linked to an EA that downloads a file, reads and records an array, prints the array to file, and then I want the

How do you work with CSV files?

I can't figure out how to put data from a CSV file into an array or a structure array. Once the file is downloaded, how do you work with it? Here is my file download: void WebData() { string cookie= NULL , headers; string reqheaders= "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)

Need help modifying code

I'm trying to get this EA to work(https://www.mql5.com/en/articles/139) but it isn't closing all open positions when the 5 zone stop is hit. Only one position is closed. Also having trouble getting the close_on_teeth stop to close all positions when price closes beyond the "teeth." Any insights