Forum

possible loss of data due to type conversion

My EA always compiled without any warnings, but recently decided to compile again and have been getting these warnings. For the life of me, I cannot work out why as I'm storing the return value of the File* functions in the correct variable type and only using those variables as int values in the

Comments Visible Inputs Dialog Box

For some reason the comments in my code are appearing in my Input dialog box in the variable column. (Build 646) eg input string MMValues_S = "<===== Money Managment Settings =====>" ; input bool dynamicLotSize_S = true ; // Enable for compounding lot sizes input string Info1_S

Check Closed Losing Trades to reenter

Hi How can I check orders that have executed and closed with a loss? I use pending stop orders to enter trades. I want to check closed orders and if they were losers and price is now below my entry price (long eg) I want to place the same pending stop order and give it another go. I would like the

Keeping Track of Winners/Loser for each day

Hi I have several EA's i've programmed running on . They have a Daily tab where it breaks down the winners and losers for each particular day. It will give the stats for total winner/losers for Monday - Friday. It's early days and my sample size is not that large but that particular daily stat on is

Adding rebate to AccountBalance()

Hi I've recently opted for a rebate in my trading. I get a rebate of $0.90 per lot traded for my ECN account. I want to incorporate the rebate in my code for back testing purposes. The rebate is deposited in my Trading account on the 10th of each month so when I do my back testing I'm going to add