Forum

Arrow and trend line at close of order - doesn't show

Hi All. I have an e.a. that when I run in tester mode, when an order closes, it shows the opening arrow, the closing arrow and a trend line between the two. When I run this same e.a. in demo mode, the opening arrow is there but not the closing arrow or the trend line. Why is this? How can I get the

Need help with writing to FILE

Hello All. I am o.k. with creating a file and writing to it. handle1 = FileOpen ("details.csv", FILE_CSV, ',') ; handle2 = FileWrite ( handle1, ticket, lot); But if I try to write to the same file and add information to it, without deleting what is already there I have a problem handle3 = FileOpen

Deleting Logs . just a little annoying

Hi All, When running in demo mode, or with the tester sometimes the log files get pretty big. Usually what I am interested in is just at the last part of the log file. To delete the log file so it starts new I need to close the terminal and reopen. I'm wondering if anyone has a better solution to

How to print trailing zeros.

Hello All, Is it possible to get "Print" to print trailing zeros, for example if value = 1.4 print 1.4000 Thank you for yr help

Initialize an array w variables.

Hi Everyone. I am a newbie to arrays. Is it possible to initialize an array with variables. When I go: int xxx[] = {1,2,3}; There is no problem, but if i go: int xxx[] = {A,B,C}; it says '}' -comma or semicolon expected. What am I doing wrong? Thanks

this scipt only half works - delete all pending orders.

I got this script off this forum. I modified it a little, but basically the same and has only half worked in either case. If i have 6 pending orders it will delete the last 3 placed. When i instigate the script again it will delete 2 more, leaving the first. And if I run the script the 3 rd time it

Plz help with static ? variable.

Hello. I am trying to get a price (high and low) derived from a bar. I am fine with double pricebuy = iHigh ( Symbol() , ac.Timeframe [1] , i ) ; double pricesell = iLow ( Symbol() , ac.Timeframe [1] , i ) ; i being the bar count. However sometimes I notice that a bar is missing

2 E.A.'s running. Which one triggered the trade?

Hello. I am a newbie. I was running 2 E.A.s at the same time. A trade was started automatically. How can I figure out which E.A. triggered the trade. Both E.A.s do the eur/usd. Thanks