Forum

make a horizontal line that starts now

Hi Everyone, Here is my small piece of code, and I cant figure out how to make the line start from the time the object was created to current bar, and not go all the way from the start entire screen.. Please help? :) string dtTimeBegin = TimeToStr( TimeCurrent (),TIME_DATE|TIME_SECONDS);

why is my indicator showing only one buffer?

Please.. maybe you guys could figure it out.. I've been through it fast, then slow, then fast again.. next thing I know, it's 1am and I still haven't figured out why it will only draw one buffer imdex. Thanks in advance! #property copyright """ #property link "" #property indicator_chart_window

using FileOpen, FileClose and FileReadNumber with indicators

I'm trying to create an indicator that will plot a line against my chart based on the close price + a variable "Weight1". The variable "Weight1" is calculated from another application and the value is placed in a text file. I would like my indicator to read the value in the text file and add it to

running an excel macro..

Hi, Has anyone tried running an excel macro from an EA? How can I code that? Anyone have samples? =) Thanks

change global variable from vb?

hi Guys, I'd like to build and EA that opens/closes positions based on an app external to mt4 like ms excel. is there a way that I can use VB to change the values in a global variable? Has anyone tried this? I'd appreciate your comments/ideas/suggestions =) Thanks

running external program

Does anybody know if there's a way I can code my ea such that when all positions close, it will run "c:\shutdown.exe" which turns off my pc? is there a run command or shell command anyone is familiar with? Thanks! :)

does the terminal automatically dl new historical data?

i run the ea I was building 2 days ago on tester.. the results were great. then I'm running them now and it looks very bad, its so frustrating.. spent a good amount of time trying to figure out if I had the settings wrong or if I had inadvertently changed something... Has someone come across this

comments on historical transactions

How can I change the comments on the transactions which have already been closed

help drawing this rectangle

Hi Everyone, Please help me draw this. This is intended for my EA and not as an indicator. Not sure why it is not drawing .. I just want for there to be a box which starts at hour 1 of the day and ends at hour 5. LineA and LineB will be the high and low of the first 5 hours of the day. Thanks in

Pause/Unpause Tester using EA

Does anyone know how to use an EA to pause/unpause tester? I want whatever tests are running to be paused when the EA is trying to make a trade.. Then when the trade is complete, I need it to unpause and resume testing