karp wak
karp wak
Friends

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

karp wak
Added topic How to know the current bar number while testing? (Array Out Of Range On First Chart Bar)
I am looking for a function that allows me to know the current bar number while I am testing in the strategy tester. I have an error: 2021.07.10 17: 47: 02.201 Core 1 1993.09.30 00:00:00 array out of range in 'ADXWilder.mqh' (83,35) And I think it is
karp wak
Added topic How to unload EAs and indicators from Strategy Tester memory?
The strategy tester loads my EAs in memory and does not delete them even if I make modifications to them ... Even if i overwrite the binary file... This is very annoying !! Is there a way to prevent this from happening? Maybe something in the
karp wak
Added topic Is there a way to launch processes from an EA?
I am thinking to make a "concurrent" system that would have several EAs running simultaneously. And I thought it would consume less resources if some AE just won't run if they are not needed. But when that is needed another EA would have to run them
karp wak
Added topic ENUM_SYMBOL_CALC_MODE is wrong? Or TradeCalcMode() is wrong? Or i'm confused?
I was testing the ENUM_SYMBOL_CALC_MODE enumeration with the TradeCalcMode () function of the CSymbolInfo class ... I tried EURUSD and USDJPY. I was expecting that (TradeCalcMode()  == SYMBOL_CALC_MODE_FOREX) Becouse  (Leverage()==200) But
karp wak
Added topic Is this calculation of the pip value and the margin of the future correct?
I want to calculate the pip value. And I also want to calculate the margin of the future before opening a position. But I am not 100% sure if I am doing it correctly. Can someone confirm if this calculation is correct? Thank you so much
karp wak
Added topic How to force the termination of the program? Something like "exit (-1)" please?
I am looking for something that allows me to kill the thread of the program when an error occurs. Something like "exit(-1)" in C and C ++. Can you please tell me if there is something similar in MQL5? I want to do something like what you can see in
karp wak
Added topic CDealInfo does not work in the strategy tester?
I am doing the following (the code below) but I only see zeros whith "Comment output". I don't know if it is because " CDealInfo " does not work in test mode, or i'm doing somthing wrong. Can someone tell me please? Thank you!! CDealInfo dealInfo;
karp wak
Added topic Can you advise me on an effective indicator to avoid long periods of consolidation in the market?
I have a strategy that apparently is very good when there are trends. But this has great losses when the market is consolidating. In fact, it almost lost 90% of the capital between 2000 and 2003. So if I can filter those periods in which the market
karp wak
Added topic CopyBuffer return error 4806 (ERR_INDICATOR_DATA_NOT_FOUND) --> Function iMA doesn't works?
Hi! I'm trying to code an EA but this "CopyBuffer" function error won't let me continue and I don't know how to solve it. CopyBuffer return error 4806 (ERR_INDICATOR_DATA_NOT_FOUND) I am thinking that the iMA () function may be faulty because
karp wak
Added topic Parameter "chart_id" of ObjectCreate()... when it can be useful?
I wonder in what situation the "chart_id" parameter of the ObjectCreate() function can be useful. All the examples I have seen so far have this parameter equal to zero. Can someone give me a little explanation or provide a link where I can see an
karp wak
Added topic Last candle indicator problem (ERR_HISTORY_NOT_FOUND 440)
I am trying to make a very simple indicator. I just want to see if the last candle of each period is a bear or a bull. I want to represent it with dot (red or blue). But this does not work. I don't see anything on the indicator. IOpen and IClose does
karp wak
Added topic How to make an indicator independent of the timeframe?
I want to make an indicator with a simple moving average . I want to see the average of the last 30 days (always, regardless of the timeframe that I am looking at at that moment). I was trying to do something like what I put below. But i don't get a
karp wak
Registered at MQL5.community
12