Recent content by Appel

  1. A

    how to code first 15 min bar of the day?

    buy=now(4)==092959; this is not working at all
  2. A

    how to code first 15 min bar of the day?

    sorry, for black bar (if O<C) I have Buy = C[0]; Sell = C[0]+200; ami buys at every single bar, but I need one trade in a day, buy at close of 1st bar and sell at buyprice+x
  3. A

    how to code first 15 min bar of the day?

    Hi there, I need buy at close at first 15 min bar of the day and sell with fix take profit at next 15 min bars. How to code this 'close price of the first 15 min bar'?
  4. A

    how to make different buy condtions for pos==0 and pos>0

    Boys, why do you think this code doesn't work? Pos = 0; EntryPrice = 0; Buy = C < WMA( C, 300 ) ; Sell = C >= WMA( C, 300 );// for ( i = 0; i < BarCount; i++ ) { if ( Buy[i] AND Pos==0) { EntryPrice = BuyPrice[i]; pos == 1; // position became greater than 0...
  5. A

    Buy every step down from MA

    Hi, I need signals with following condition: the are levels step is the int measure betw levels: step=10; 1 level = MA+10 0 level = MA -1 level = MA-10 -2 level =MA-10*2 if Close<MA, buy 1Size every Level down from MA if Close>MA, sell 1Size every Level up from MA Code: Step=10; buy =...