Forum

AES256 encode+decode

Hi all, this is the procedure I'm trying to accomplish : RAW_STRING : is a string from input this string is converted into a uchar array (considering the \0) encrypt the uchar array using AES256 method (with a constant and proper-sized key) represent a Hex array from the encrypted data (saved to

MultiColor input for Experts?

is it possible to somehow get more than one color from user, using one input ? (where user chooses the desired colors from the standard palette) (it's possible for indicators.) EDIT : structures are not permitted as inputs. :(

RetCode: 10021

Hi this is a snippet, executed on ChartEvent click event : double SL_price= 0 , TP_price= 0 ; bool SL_retrieved = ObjectGetDouble ( 0 , "UTA_SL_LINE" , OBJPROP_PRICE , 0 , SL_price); bool TP_retrieved = ObjectGetDouble ( 0 , "UTA_TP_LINE" , OBJPROP_PRICE , 0 , TP_price); if (SL_retrieved &&

starting with indicators

Hey, I have some calculations to do on a pre-determined number of M1 bars. (120, 240, 360 or 480 or... based on input) and I want to write my first indicator ever. from the new indicator wizard, I have created the source file. added my codes and functions to calculate my variables. but there's

OrderCheck() failure

Hi, this piece of code , always leads to the same error. the ModifyReq is filled just as Trade.mqh is filling it before sending a modification order. // getting position data here.... symbol, TP, ticket... // and all values are checked. // pos_symbol != "" // long pos_ticket = PositionGetInteger

[SOLVED] : why [trade disabled] errors occur during backtest ???

the strange thing is, the expert just did well in testing, it was able to trade in tester without problem. now no matter what I do, it pops a [trade disabled] error each time EA tries to open a position. trade disabled in tester ??? how ? and why it happens suddenly, without changing anything

Why my Copy functions fail on tester ?

>_< all the procedures the EA performs to copy large quantities of buffers and prices, works fine in demo mode. BUT the same procedure fails each and every time in tester. how to copy large number of buffers/prices in tester successfully ? (~ 350,000 buffer doubles) I guess the problem is, my code

Margin calculation modes

Since the EA i'm writing will be used only on forex pairs, should I check the SymbolInfoInteger(SYMBOL_TRADE_CALC_MODE) ? 1. is this SymbolInfoInteger(SYMBOL_TRADE_CALC_MODE) , a reliable checkup to be sure if EA is activated on a forex pair (and not on OIL and other stuff) ? and I have added the

Spread values of bars ?

hi, functions : CopySpread() and iSpread return the spread value of bars. What's definition of spread for BAR s ?!!! (as compared to tick spread) Spread at any tick = Ask - Bid. Ask and Bid can change each tick, and bars are accumulations of ticks. so spread of bar is first spread of ticks of that

Position Comment Reliability : open positions

Hi, I need to embed some data about positions I open, inside its comment. then on some other parts of code, need to retrieve the comment of OPEN POSITIONS, and modify each open position based on it's comment data (like it's signal category, it's signal reliability etc.) I know position comment is