BorysekPL
BorysekPL
Friends

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

BorysekPL
Registered at MQL5.community
BorysekPL
Added topic How to save order open course not as a bid or ask but current value that is expressed in points. [SOLVED]
Hi, i want save course as a value in global variable . It need to be save as a current value, written in points . Not the Ask or Bid. I want to use it to compare distance between orders. If i use GlobalVariableSet GLV == OrderOpenPrice than it will
BorysekPL
Added topic A variable that have the same value even when course is changing. Saving value to next counting.
I want save results of counting to use them when next tick induce reaction in EA and there will be next counting. A Variable that will still have a value from last counting to the next counting even when meantime course will
BorysekPL
Added topic I need to select historical order 1 before the youngest. First order before last one.
I need to know if the order before lest one was sell or buy and what was the open price and if there had been a take profit or stop loss used at the end.  can you help me? 
BorysekPL
Added topic How to select the order that have profit?
I' ve try this method but without effects:      for (i =   OrdersTotal () - 1    ; i >= 0 ; i -- )                 { //for2
BorysekPL
Added topic Logic problem I think.... looking for help:)
int start() { //---- int action = 0 ; double loty = 1 / 100 ; int course = Bid ; int lastOpenTime = 0 , Ticket = 0 ; double point = MarketInfo ( Symbol (),MODE_POINT); double diference = 50 *point; bool result; double price, Oprice; int cmd
BorysekPL
Added topic Why this code is always closing orders? looking for a prompt:)
int start() { //---- int action = 0 ; double loty = 1 / 100 ; int course = Bid; int lastOpenTime = 0 , needleTicket = 0 ; double point = Point ; double diference = 50 *point; bool result; double price, Oprice; int cmd, error; for ( int i
BorysekPL
Added topic problem closed - thanks for help:)
problem closed:)
BorysekPL
Added topic Looking for the last order open price. Without MagicNumber A theme is closed. thanks:)
The problem for me is that i don't know what was last order MagicNumber. - I need to check open price of the last order even when I close and start again computer. If I know what was the magic number, than I could use this code... int OPrice; for(int
BorysekPL
Added topic Alert! Order Cancel Failed: 129 ??
Hi, I don't know what is wrong. I can't close the order. There is last ERROR nr 129. Can you help me?    for (pos = OrdersTotal ()- 1 ; pos >= 0 ; pos--) if (
BorysekPL
Added topic EA works but can't send one of the orders. Looking for help.
int start()   { //---- double ABUY= 0 ;    double ASELL= 0 ;    double BBUY= 0 ;    double BSELL= 0 ;    double HABUY= 0 ;    double HASELL= 0 ;    double HBBUY= 0 ;   
BorysekPL
Added topic Can't test EA.
Hi, I'm looking to answer what have I made wrong cose my EA is working (sending and closing orders). The problem i I can't test strategy. This is my first EA so any prompts appreciated:) |
BorysekPL
Added topic I need a logic prompt. Quick question.
for (pos= OrdersTotal ()- 1 ; pos >= 0 ; pos--) if (      OrderSelect (pos, SELECT_BY_POS)     &&  OrderMagicNumber() == 1
BorysekPL
Added topic Why this isn't compiling? only few lines of code..
int start()   {       int ABUY;    int ASELL;    int pos;         if ( ABUY== 2 ) {              if (
BorysekPL
Added topic Compiling but not running. Can somebody help me?
The problem is that I can't start my first strategy. I can't send the orders. This is the code i use to check if order with MagicNumber exists and if not than strategy should send the order. Anybody knows what is wrong and why this isn't sending
BorysekPL
Added topic What is the role of "count" variable?
int init()   { //----    //----    return ( 0 );   } //+------------------------------------------------------------------+ //| expert deinitialization
BorysekPL
Added topic '\end of program'- unbalanced paranthesis - not compiling
I don't know why this is not compiling. Can you help me? int start () { int ABUY, ASELL, pos; if ( ABUY== 2 ) { if ( ASELL>0 ) { for(pos = OrdersTotal()-1; pos >= 0 ; pos--) if ( OrderSelect(pos, SELECT_BY_POS) // Only my orders &&
BorysekPL
Added topic How delete pending order with MagicNumber = 1?
First I try to delete pending order with magic number=1 using this: OrderDelete(OrderMagicNumber()== 1 ); Doesn't work! But somebody tell me that this is boolean expression . //by the way thanks brewmanz So i think about: int OMN= OrderMagicNumber;
BorysekPL
Added topic Why EA didn't send any orders?
Please give me a prompt if you know why this isn't runs when I add it as a strategy in my panel. I want it to check if any order is on the market. If not it should send pending orders. I think that the problem is in form or coding. int start() {
BorysekPL
Added topic Can somebody tell me how transform this to my first ea? I know that the problem is in the form, and coding but I don't know what. Please help me in compiling this. Asking for any prompts:)
int start() { double ABUY=0; double ASELL=0; double BBUY=0; double BSELL=0; double point = MarketInfo(Symbol(),MODE_POINT); double expiration=CurTime()+PERIOD_D1*60; int n; int total= OrdersTotal(); for( n=0; n<total; n++ ){ // count how many open
12