Tosh5457
Tosh5457
Friends

Add friends via their profile or user search and you will be able to see if they are online

Tosh5457
Added topic Find the difference
Hello, I got an indicator that is working fine, but I want to reproduce it to a script, and in the scripts I'm getting wrong values. It's a kind of a moving average.   In the indicator, ind_buffer0 will have the moving average values. 
Tosh5457
Added topic Indicator crashing right in the exit of start()
I have an indicator that is crashing Metatrader sometimes, and by using logs, I found out it's happening right when start() ends (it's logging in the last line, and then doesn't log anymore). What does Metatrader do exactly when start() ends? The
Tosh5457
Added topic CPU usage increases over time
I have an indicator that increases CPU usage over time. At first less than 5%, some hours later 10%, and one day later it's at 50%. Any idea of what is causing it
Tosh5457
Added topic How to stop indicator from crashing?
This indicator crashes whenever the variable History is larger than the number of bars I have in data history. int start()   {    //******** TEMPLATE INDICADOR **********/    int i, counted_bars=IndicatorCounted();
Tosh5457
Added topic Build 646: Not getting correct data for the last bar High/Low and volume
This happens in many pairs and the problem doesn't disappear unless I delete the historical data and force MetaTrader to download it again. I've tested in Oanda and Alpari and it happens in both of them: As you can in the 1st one, the last bar (7th
Tosh5457
Added topic How to use ShellExecuteA?
I was able to run programs using ShellExecuteA in the previous build. For example to run notepad.exe it was the code below. Now with the new metatrader build it doesn't work anymore... And also file handling is much much slower. #import "shell32.dll"
Tosh5457
Added topic Metatrader 4 main window doesn't show up, but terminal.exe is running
So I put a lot of charts with an indicator that takes a while to compute everything (2~3 minutes for all charts). Since I closed MetaTrader that time, when I open it the program's window doesn't show up, even though terminal.exe is running. I even
Tosh5457
Added topic Why is backtesting starting with a template?
It's starting with a template that has some indicators and I don't know why, why isn't it starting with the default template with just the prices in OHLC like it's usual? It's using a template that has a bugged indicator, which I already changed, but
Tosh5457
Added topic Backtesting and bars' highs and lows
When backtesting (using the tick method) the highs and lows on other timeframes get all screwed up. Is there any work-around to resolve this? My EA uses various timeframes at the same time, and it needs the highs and lows to be correct
Tosh5457
Added topic My indicator is crashing Metatrader
I have no idea why... There is no problem with the functions isLongTermTrend() and isHigherThan(), because I use them in an EA and they work fine there. //+------------------------------------------------------------------+ //| LongTermTrend.mq4 |
Tosh5457
Added topic Can't write to file during a backtest?
Isn't it possible to for an EA to write to a file during a backtest ? EDIT: Nvm, just found out it goes to tester/files :P 
Tosh5457
Added topic How to draw rectangles on top of the chart?
How do I draw rectangles on the top of the chart? I also want them to stay there if I zoom or unzoom. 
Tosh5457
Added topic EA is using 100% CPU in MetaTrader 4
Hi, my problem is: when I put the EA in 15 pairs for example, 1 by 1, this problem doesn't appear. But if I start MT4 with the EA already attached to those 15 pairs MT4 uses 100% CPU until I close it. This is so strange, anyone got a clue
Tosh5457
Added topic I can't see the problem in my moving average code
#property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization
Tosh5457
Added topic How do you test if the pair is in a medium/long term trend?
Hi, I'm looking for some input on this from people who already did it or have an idea of how to do it. I don't want to use moving averages because of the lag, I'm looking for a natural method, that uses the same parameters as people do when looking
Tosh5457
Added topic Can't find the logic error in this simple code
datetime last_bg_routine = 0 ; int bg[ 10 ][ 6 ]; int init() {          ArrayInitialize (bg, 2 );          return ( 0 ); } void BgRoutine() { int i, j; if ( iTime ( NULL
Tosh5457
Added topic Is there a way to know the date of the last bar I have in history?
I want to know the date/shift of the last history bar. Is there any way to do this
Tosh5457
Added topic How to test an EA when there aren't ticks coming?
In a saturday or sunday, how do you test an EA? I've tried putting the code on init but it doesn't run
Tosh5457
Added topic isTradeAllowed() is always returning false
I'm using a demo account on Alpari and I can do manual trades just fine, and I've also enabled the option that allow EAs to trade. So I don't understand why isTradeAllowed() always returns false
12