Thursday, 24 May 2012

Forex: Risk and Lot size Calculator (RLCalculator)

I always wanted to have a better calculator, than you can find on the internet. Better in usage. With this indicator, you can calculate your new position's risk and lot. It calculates from your current balance [ AccountBalance() ].
For the calculations, you can use 3 horizontal lines. Red is StopLoss, White is the "CurrentPrice", and the Lime colored is the TargetPrice.

Chart - Example (Click to Zoom in):




If you like it, please Hit the Donate button. Thank you!

Download [ZIP]: https://dl.dropbox.com/u/531976/ForexTechnical/Indicators/RLCalculator/RLCalculator_v1.zip


Click on "Read more..." for details.


Forex: Opened Position's Average Price Indicator

I've just started to learn about MQL[45]. My first indicator can calculate all the opened position's average price, where usually stoploss can be set to (in trend following strategy).

It calculates only when (OpenedPositions > 1).



If you like it, please Hit the Donate button. Thank you!

Download [ZIP]: http://dl.dropbox.com/u/531976/Forex/Indicatorz/OPAP/OPAP.zip



Click on "Read more..." to see the source code.

Sunday, 1 April 2012

HowTo: Alsa and Pulseaudio 2.0 upmix 5.1 through SPDIF (with a52 alsa plugin) Ubuntu

See original HowTo here: DigitalAC-3Pulseaudio

I needed a few modifications to get it work; let's do this from the beginning:
sudo apt-get build-dep libasound2-plugins
sudo apt-get install libavcodec-dev libavformat-dev
sudo apt-get install libavcodec-dev
sudo apt-get install libasound2-dev # Added for ubuntu 12.10
mkdir ~/tmp
cd ~/tmp
apt-get source libasound2-plugins
cd alsa-plugins-*
./configure
make
After compiling, you have your module here:
cd a52/.libs

root@gorkhaan-desktop:~/tmp/alsa-plugins-1.0.22/a52/.libs# ls -l
llibasound_module_pcm_a52.la -> ../libasound_module_pcm_a52.la
libasound_module_pcm_a52.lai
libasound_module_pcm_a52.so
pcm_a52.o

Let's copy it to "alsa-lib" directory. If you want to find this directory elsewhere than Ubuntu 10.04.4 has. See Original HowTo!
# On Ubuntu 10.04.4:
cp libasound_module_pcm_a52.la libasound_module_pcm_a52.so /usr/lib/alsa-lib/

# On Ubuntu 12.10 AMD64:
cp libasound_module_pcm_a52.la libasound_module_pcm_a52.so /usr/lib/x86_64-linux-gnu/alsa-lib/

# On Ubuntu 12.10 i386:
cp libasound_module_pcm_a52.la libasound_module_pcm_a52.so /usr/lib/i386-linux-gnu/alsa-lib/

Restart Alsa and Pulseaudio (or reboot):
sudo alsa reload
sudo killall pulseaudio

The original howto missed one critical package: libavcodec-dev

Choose your Output device and Enjoy:

Saturday, 1 October 2011

TP-LINK WR1043ND OpenWRT DVB-T with TDA18218 chipset - dvb-usb-af9015 with MumuDVB streaming MindigTV - HowTo + Firmware

Hello everyone. WR1043ND with OpenWRT is a great solution for many home usage, like file sharing, downloading torrents and much more. This howto adds another great feature to our beloved Router.
In this howto I've created a Set-Top-Box (STB) like feature with a cheap USB DVB-T receiver.

My DVB-T receiver (TDA18218 chipset): http://www.dealextreme.com/p/usb-dvb-t-tv-dongle-with-remote-8309 I had to buy a "MCX to COAX" adapter cable too from ebay.