Need help in code...

 

Does anyone know the code to say, "if Stochastic main>signal --> get current price and put it in a variable" For example...something like,


double take_profit;

if( stochastic_blue > stochastic_red )

{take_prifit = current price}


....so that I can use this variable called "take_profit" in my ordersend.


Thanks,

-Ron

 

48
rortiz77 2010.01.08 23:02

Does anyone know the code to say, "if Stochastic main>signal --> get current price and put it in a variable" For example...something like,




int take_profit;

int ticket;

if( stochastic_blue > stochastic_red )

{

take_profit = MathRound(Close[0]);

......

......

ticket=OrderSend(Symbol(),OP_SELL,Lot,Bid,3,0,Ask-(take_profit*Point),0,111,0,Red);

}



Best Regards!


dopala44

Reason: