[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help coding an exit



PureBytes Links

Trading Reference Links

Hi all,

I got this email and I don't know what to make of it. I thought I would put 
it back out and see.

Are people allowed to ask for help with coding?

I thought this list was about helping people. When I have had some data 
(although mainly Asia and Europe - not the US as it's not in my timezone) 
or some ideas on things I have passed it on. I needed some help with a 
while ago when my format analysis | inputs went missing and Jimmy and a few 
others helped me out.

I thought this list was a roundabout - what goes around comes around.

All I asked for was some help to code an exit. I said it was an exit. What 
other explanation do I need to provide?

I put some basic code up and bracketed what I was trying to achieve so 
people could get an idea of where I was coming from and how I thought it 
should be stepped out.

Anyway, if people think it is out of line to ask for coding help, no 
stressies, then please say so.

Regards,
Paul


adleone@xxxxxxxxxxxxx wrote:
: I know I asked the other day but I am not sure if some people may have
: missed the post. I need a hand with the following coding problem I have
: with an exit. Any help would be appreciated.

I don't know how other people feel abut this but it seems to me that we're
back in high school and you're asking people to do your homework for you.
What you're asking seems convoluted but it would be helpful if you were to
describe exactly what you want to do. Throwing up codes without an
explaination of what you're trying to accomplish doesn't help. It's kinda
hard to do all the work for you if there's no idea of what you're trying to
do.



: {Indicator}
: Inputs: Myposition(0), Mydate(1040101), Mytime(1530), Lookback(2),
: Insidedayz(0);
:
: {For Long Positions}
: If Myposition = 1 then begin
:
:     {Start plotting after I enter a long position}
:     If (Date = Mydate and Time >= Mytime) or Date > Mydate then begin
:
:        {Now determine the highest close since the input entry time}
:
:        {Count this as bar 1}
:
:        {Now go back the number of days in the input "Lookback"}
:
:        {If possible - add the next condition in}
:        {If input "Insidedayz = 0 then do NOT include inside days in the
: number of days to lookback}
:        {If input "Insidedayz = 1 then DO inclde inside days in the number
: of days to lookback}
:
:        {Now determine the lowest true low of those number of lookback days}
:
:        {Plot the Lowest truelow on the screen over the chart}
:
:     End;
: End;
:
:
: {Once I have this I can work out the short exit on my own without troubling
: anyone}