Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

positions viewer
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=56610
Page 1 of 1

Author:  ipok [ Mon 02 Jul, 2018, 08:40 ]
Post subject:  positions viewer

Hello!

I have more problem whit the positions viewer. I dont get it in to work.

I try now that if the progrem reached an amount ot equity it should stop the strategy.
My other try was whit the partial close whit the same result.
Didn't work.

I see that the strategy gets the amount but when it reached it does nothing.
Can some one help me to get it work?

Image

Attachments:
File comment: posview
posview.jpg [281.68 KiB]
Downloaded 449 times

Author:  ipok [ Mon 02 Jul, 2018, 11:27 ]
Post subject:  Re: positions viewer

The problem is solved!

Author:  JudgeDredd [ Tue 03 Jul, 2018, 13:49 ]
Post subject:  Re: positions viewer

ipok wrote:
The problem is solved!


I think that it will be very interesting for every forum participant to get some clues from You how to solve this issue. We will really appreciate Your input and will be very thankful if You will spend some time and drop some notes how to "connect the bricks" and create working solution of the issue You met in fist post.

Author:  ipok [ Fri 06 Jul, 2018, 16:37 ]
Post subject:  Re: positions viewer

I tought nobody cares!

I changed the way to solv the problem. I put a picture below.

I use the tradeevent starting point, i check all the positions, if the state is filled or not. When the equity goes below 200, all positon is canceled, and the strategy stops.


Image

Attachments:
posi1.png [149.14 KiB]
Downloaded 466 times

Author:  JudgeDredd [ Tue 10 Jul, 2018, 14:23 ]
Post subject:  Re: positions viewer

Thank You very much for Your input!

Author:  ipok [ Tue 17 Jul, 2018, 23:33 ]
Post subject:  Re: positions viewer

Hello, its me again!

My question is about the loop viewer.

It is possible, that the loop viewer dont do the cycle, it jumps right to the end of cycle and do the parameters on that site?

Is it not the loop viewers duty to do the loop and after the end of cycle?

I have a few ma and compare it in the loop, if it gets tot the bottom it should set the Long variable to true, and after that the buy can go.

But instead its want to do the end of cycle part what is stuck because the loop didn't do the job to set the Long variable to true.

Has anyone a idea what i do wrong?

Image

Attachments:
posview.jpg [709.91 KiB]
Downloaded 503 times

  Page 1 of 1