Page 7 of 11 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 109
  54 54 Attachment(s)    

Thread: Ten Stochs Wave EA

  1. #61

    Default

    Quote Originally Posted by funyoo View Post
    thank you very much for advice
    i tried to do, but it still no good. I don't understand why, what is reason.
    Logic seems correct but acting bad. so strange is that open trade buy altought one of stoch is down of levelforopen.

    and if turn on close by stoch -True ,condition for close is ok(cross) , trade is close and then open another altought using string stopbuy and maxtradeperbar

    please look , maybe your eyes find what is bad.
    It's night, i must go to sleep
    goodnight
    Attached Files Attached Files

  2. #62
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by przem81621 View Post
    thank you very much for advice
    i tried to do, but it still no good. I don't understand why, what is reason.
    Logic seems correct but acting bad. so strange is that open trade buy altought one of stoch is down of levelforopen.

    and if turn on close by stoch -True ,condition for close is ok(cross) , trade is close and then open another altought using string stopbuy and maxtradeperbar

    please look , maybe your eyes find what is bad.
    It's night, i must go to sleep
    goodnight
    I have updated the guide :

    Max trade per bar

  3. #63

    Default

    Quote Originally Posted by funyoo View Post
    I have updated the guide :

    Max trade per bar
    Seems that it's working
    I will try
    thanksgreat

  4. #64

    Default

    welcome tonight
    it's version with TradeperBar
    it's good - 1 trade for bar.

    But I want to do one more ,please give me a idea how to do it.

    1 bar - condition for open is good and ea open trade
    2 bar - trade closed by any reason: Tp, SL or other , but condition for open is still good, so ea open next trade.
    I don't want that second open, but how to stop it?
    Attached Files Attached Files

  5. #65
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by przem81621 View Post
    welcome tonight
    it's version with TradeperBar
    it's good - 1 trade for bar.

    But I want to do one more ,please give me a idea how to do it.

    1 bar - condition for open is good and ea open trade
    2 bar - trade closed by any reason: Tp, SL or other , but condition for open is still good, so ea open next trade.
    I don't want that second open, but how to stop it?
    Use a sleep function after the first trade : Sleep(X);

    The X is an integer, knowing that 10000 = 10 seconds.

  6. #66

    Default

    Quote Originally Posted by funyoo View Post
    Use a sleep function after the first trade : Sleep(X);

    The X is an integer, knowing that 10000 = 10 seconds.
    thanks
    so , if I want to stop for 5 min x= 300000 ?

    and please tell , sleep in this place will be correct ?
    if(OrderType()==OP_BUY && OrderSymbol()==Symbol() && ((OrderMagicNumber()==Magic) || Magic==0)){if (CB==1){OrderClose(OrderTicket(),OrderLots(),Bid,S lip,Red);Sleep(x); return(0);}}

  7. #67
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by przem81621 View Post
    thanks
    so , if I want to stop for 5 min x= 300000 ?
    Correct.

    Quote Originally Posted by przem81621 View Post
    and please tell , sleep in this place will be correct ?
    if(OrderType()==OP_BUY && OrderSymbol()==Symbol() && ((OrderMagicNumber()==Magic) || Magic==0)){if (CB==1){OrderClose(OrderTicket(),OrderLots(),Bid,S lip,Red);Sleep(x); return(0);}}
    Exact.

  8. #68

    Default

    Quote Originally Posted by funyoo View Post
    Correct.
    Exact.
    thanks
    i'm trying do some changes, but i'm begginer
    so, i 've two problems to solve.
    Would you be kind Mr.Funnyoo to help ?

    1.ea gives the same results with sleep and without, so I did it wrong, but not know where.
    2.I've add to use additional stoch for close trade. it work when cross signal and main line, typical.
    After that (closed by stoch or if TP ) to not open next trade I want to move high level for open buy=100
    and the same down level for sell=0.This levels should be stay untill all signal stoch fall down begining level-80 or grow up begining level - 20
    it should be solve problem, but i can't do it correctly.

    there is results what i've done
    Attached Images Attached Images Ten Stochs Wave EA-wave-cross-gu-4h-gif 
    Attached Files Attached Files

  9. #69
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    1. Unfortunately, the sleep function doesn't work in backtesting.
    2. Good question, I don't see how to do that.

  10. #70

    Default

    Quote Originally Posted by funyoo View Post
    1. Unfortunately, the sleep function doesn't work in backtesting.
    2. Good question, I don't see how to do that.

    i know someone use slip function instead of sleep function

Similar Threads

  1. Double MTF Stochs EA
    By senaka7 in forum Ideas for expert advisors
    Replies: 7
    Last Post: 04-29-2017, 12:33
  2. Ten Stochs Wave EA
    By funyoo in forum Expert advisors live statements
    Replies: 14
    Last Post: 08-21-2010, 21:44
  3. Td d-wave
    By monstar in forum Ideas for expert advisors
    Replies: 3
    Last Post: 07-19-2010, 11:49
  4. Second stochs EA Idea
    By Bredman in forum Ideas for expert advisors
    Replies: 6
    Last Post: 11-05-2009, 22:43
  5. 2 time frame stochs filter
    By automatic in forum Ideas for expert advisors
    Replies: 1
    Last Post: 12-19-2008, 19:11

Tags for this Thread

100, advisor, alpari, backtest, backtesting, change, check it out, closing, color, demo, divergence, eurusd, expert, expert advisor, forex, forex expert advisor, free, guide, high, how to, indicator, indicators, learn, live, low, magic, magic number, main, mq4, mql, oscillator, profit, profitable, programming, review, rsi, sells, signal, signals, stoch, stochastic, stop, strategy, system, test, thank you, time, trader, trading, user guide

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •