Skip to content

Instantly share code, notes, and snippets.

@Visionary1
Visionary1 / AIO MAs.pinescript
Created July 21, 2021 03:35
AIO MAs for pinescript
//@version=4
study(title="AIO MAs", shorttitle="AIO MAs", overlay=true, resolution="", resolution_gaps=true)
computeVWAP(src, isNewPeriod, stDevMultiplier) =>
var float sumSrcVol = na
var float sumVol = na
var float sumSrcSrcVol = na
sumSrcVol := isNewPeriod ? src * volume : src * volume + sumSrcVol[1]
sumVol := isNewPeriod ? volume : volume + sumVol[1]
@Visionary1
Visionary1 / Class Dock.ahk
Last active August 3, 2022 16:29
Docks a window to another
/*
Class Dock
Attach a window to another
Author
Soft (visionary1 예지력)
version
0.1 (2017.04.20)
0.2 (2017.05.06)
/**
* Class DynaScript
* 파이프를 통한 Child 프로세스 Spawn
* 버전:
* v1.0 [마지막 수정 12/14/2015 (MM/DD/YYYY)]
* 라이센스:
* WTFPL (http://wtfpl.net/)
* 시스템 환경:
* AutoHotkey v1.1.22.09
* 설치:
@Visionary1
Visionary1 / CMsgBox.ahk
Last active December 13, 2015 06:57
TaskDialog function implement, in AutoHotkey
/**
* Class MsgBox
* 윈도우 Vista 이후부터 지원되는 TaskDialog 메시지박스 모듈화
* 관련 링크 : https://msdn.microsoft.com/en-us/library/windows/desktop/bb760540%28v=vs.85%29.aspx
* 버전:
* v1.0 [마지막 수정 11/26/2015 (MM/DD/YYYY)]
* 라이센스:
* WTFPL [http://wtfpl.net/]
* 시스템 요구사항:
* AutoHotkey v1.1.22.09 (제 환경입니다, 아마 1.1 이후부터는 다 될꺼에요)
@Visionary1
Visionary1 / GDI.ahk
Created November 24, 2015 03:11 — forked from G33kDude/GDI.ahk
GDI wrapper for AutoHotkey
class GDI
{
__New(hWnd, CliWidth=0, CliHeight=0)
{
if !(CliWidth && CliHeight)
{
VarSetCapacity(Rect, 16, 0)
DllCall("GetClientRect", "Ptr", hWnd, "Ptr", &Rect)
CliWidth := NumGet(Rect, 8, "Int")
CliHeight := NumGet(Rect, 12, "Int")
@Visionary1
Visionary1 / AutoHotKey Simple Title Animation
Created November 24, 2015 03:11 — forked from KhalidFawzy/AutoHotKey Simple Title Animation
Little script to animate gui title in AutoHotKey
Title1 = Simple Title Animation
Title2 = Created by: Khalid Fawzy
SetTimer, AnimateTitle, 100
Gui +AlwaysOnTop
Gui +HWndGUI_ID
Gui, Show, Center h100 w400, .
Return